Guest GroovyJoe Posted May 29, 2003 Report Posted May 29, 2003 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 : 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 May 30, 2003 Report Posted May 30, 2003 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 May 30, 2003 Report Posted May 30, 2003 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);
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now