Posted on 1998-06-24
I am going to build a "Bookmark" type menu in my application
and I need to retrieve the Content of a Popup menu item in order
to look it up in my bookmark-table.
I am trying to use the function GetMenuItemInfo when the
WM_INITPOPUPMENU message is generated because,
as far as I see, this is the only way to retrieve the content of
a popupmenu (?). Is there another way?
I am initialising the call with the correct handle and index so
I suspect it is my MENUITEMINFO structure that is incorrect.
I am receiving an error of 87 (decimal) when I use the GetLastError
after the GetMenuItemInfo call fails.
Does anybody have any sample code that makes use of
this call? Or do you have any other ideas of how to solve
Best rgds, Anders Karlsson