Jump to content

Change submenu popup text


Recommended Posts

Guest GroovyJoe
Posted

I've read every (almost) Q/A, articles and messages about menu, but I've found no where how to modify the text in a submenu popup.

For instance :

SmartConvert2.jpg

I'm able to change the item text "Operations" using DeleteMenu & InsertMenu but after that the item is no more a popup submenu...

And I'm not able at all to change the item text "Ma Conversion" in my example...

Any idea? Thanks a lot!!!

Guest GroovyJoe
Posted

I'm now able to change text for item in submenu.

For instance:

MENUITEMINFO mii = {0};


	mii.cbSize = sizeof(mii); 


	mii.fMask  = MIIM_SUBMENU; 


	GetMenuItemInfo(hMenu, 3, TRUE, &mii); // By position


	HMENU hSubMenu = mii.hSubMenu;


	wce_ModifyMenu(hSubMenu, 1, MF_BYPOSITION, 7000, g_resMngr.getResource(TEXT("id_menu_scientific")));

But still not able to change the text of the parent item of the submenu, keep searching...

Guest GroovyJoe
Posted

Well I've got everything now, still with MenuItemInfo:

MENUITEMINFO mii = {0};


	mii.cbSize = sizeof(mii);


	mii.fMask  = MIIM_TYPE;


	mii.dwTypeData = TEXT("Test !!!");


	SetMenuItemInfo(hMenu, 0, TRUE, &mii);

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.