Hi,
I have created a toolbar and want to add a drop down menu to one of the buttons. Can you give me a clue as to how to add the drop down.
Many Thanks
===Usually in WM_CREATE and maybe store the menu handle in a Global, etc===
CreatePopupMenu()
Then add menu items to it- InsertMenuItem()
======
When button is clicked, GetCursorPos()...some mouse messages even give you the point values.
Then use TrackPopupMenu to open the menu.
Might make it look even smoother by getting the Point value of the button corner instead of the mouse pointer to make it appear right below it and look like the Back/Forward buttons in IE.
Cheers,
I was trying to work out how to use the toolbar editor to do the dropdowns. I will look at your method.
Many Thanks
Hi John,
Unfortunately, in this case, you can not use the Menu Editor to create a drop down toolbar menu. :(
Might be a good edition in the future to have a menubar and popup menu editor.
Yes, for sure. Built in popup menu editor would be a great addition. As well, an editor for creating image lists interactively would be nice.