looking for an example how to MENUITEMTEMPLATEHEADER in memory

something like this

http://msdn.microsoft.com/en-us/library/windows/desktop/ms644996%28v=vs.85%29.aspx#template_in_memory

but for a MENU

or is there a function to get a copy of a HMENU ?
I just googled "copying hmenu windows" and found this article
http://social.msdn.microsoft.com/Forums/en-US/537ae21b-9ab7-412b-85c2-482bc17c9615/how-to-copy-all-items-of-a-hmenu-to-another-hmenu?forum=vcmfcatl

Quote:
Don't understand why you need to do this operation.

Just use handle to menu in other place where you want to display this menu.
Last edited on
If you want to get a handle of a menu, use GetMenu() API:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms647640(v=vs.85).aspx
DeleteMenu function
Deletes an item from the specified menu. If the menu item opens a menu or submenu, this function destroys the handle to the menu or submenu and frees the memory used by the menu or submenu.

was my concern now i see there is also a RemoveMenu function
witch do not destroys them.

thx.


Did you just ask another question? Your last post is a little hard to understand grammatically. I do not understand what concern of yours that you are referring to.
no no new question solved
Topic archived. No new replies allowed.