Click to See Complete Forum and Search --> : expand and collapse windows


chals1
November 30th, 2006, 08:47 AM
I wonder if someone could explain how to achieve this expandable div menu
http://www.dustindiaz.com/dhtml-expand-and-collapse-div-menu/
but using win32 apis to make a toolbar with some menus

ovidiucucu
November 30th, 2006, 11:15 AM
I wonder if someone could explain how to achieve this expandable div menu
http://www.dustindiaz.com/dhtml-expand-and-collapse-div-menu/
but using win32 apis to make a toolbar with some menus
No wonder. Just, to make us understand what do you really want from that link, you have first to teach us some scripting languages. :D

Well, to "make a toolbar with some menus" in a Win32 application, do the following (by short):

set TBSTYLE_EX_DRAWDARROWS extended style for toolbar control;
add TBSTYLE_DROPDOWN style to each toolbar's button for that you want a (dropdown) menu.
handle TBN_DROPDOWN notification sent to tollbar's parent via WM_NOTIFY message;
call TrackPopupMenu function.