Page 1 of 1
GetMenuInfo
Posted: Wed Jan 25, 2012 10:23 pm
by Psych
I've been pulling my hair out for whole day thinking that my coding was wrong, only to find that GetMenuInfo does not work properly with image menus. As far as I am aware it is only the ability to get the menu text that fails, Getmenustring also fails with Image menus.
Does anyone know why this is? Or if there is a workaround?
Re: GetMenuInfo
Posted: Thu Jan 26, 2012 2:34 am
by IdeasVacuum
As far as I am aware it is only the ability to get the menu text that fails, Getmenustring also fails with Image menus.
Erm, that's two items that fail then.
I couldn't find anything on MSDN that suggests GetMenuInfo will not work with a menu that includes bitmaps. What info are you trying to gather? Do the PB commands GetMenuItemText() and GetMenuTitleText() work with your menu?
Re: GetMenuInfo
Posted: Thu Jan 26, 2012 4:01 am
by Psych
Indeed, but I was kinda assuming that the one function was a wrapper for the second, with more information. MSDN does encourage the use of getmenuinfo over other functions anyway.
I havent used the PB functions, since I want to be able to modify menu items and submenus on the fly, something PB doesnt support. With the API I can add a submenu to another menu with very little programming, I am just a little bewildered why the text member doesnt populate with image menus.