You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
This is what I do in own MDI editor with three toolbars, one parent and
two smaller ones above each other on that one. Enables me to position
them where I want. To make parent height big enough for the two childs,
I set big button size on that one. hToolBar is parent and actually has
no buttons on it, but works same anyway.
Borje --
Thanx. This works, but I use CreateWindowEx.
Code:
hwndTB = CreateWindowEx(%WS_EX_WINDOWEDGE, "ToolBarWindow32", ByVal 0, _
%WS_CHILD Or %CCS_ADJUSTABLE Or %CCS_TOP Or %TBSTYLE_TOOLTIPS, _
0, 0, 0, 0, hwndParent, %ID_TOOLBAR, GetModuleHandle(""), ByVal 0)
Then I correct some styles.
Reading MSDN, I understood that I need exactly CreateWindowEx (image lists, customdraw ?)
Maybe I will be able to bypass restrictions, but it will be nice to set button size for CreateWindowEx also.
Seems CreateToolbarEx is macro for the above (except TB_SETBUTTONSIZE of course).
Lance, the trick is to send %TB_SETBUTTONSIZE after %TB_ADDSTRING. Works fine
for me here.
------------------
[This message has been edited by Borje Hagsten (edited October 13, 2001).]
Borje --
thanx. Because it should work, I decided to analyze different sequences of messages.
"Enemy" was TB_ADDBITMAP. TB_SETBUTTONSIZE after it works fine.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment