Menu Control
-
-
How to get the Top-level menu ID and change it on the run time. I am able laod trhe name of child menu item using Menu ID. But I don't knoe how to load the name of top lavel menu (like File, View, Help) at run time. Please any one can help me. Thanks...
-
You are right, but my query is how I will get the parent menu (FILE, View,Help) using get menu. I am able to get the child menu and modifying it using ModifyMenu(); Here is my code:- CMenu *pMenu = GetMenu(); pMenu->ModifyMenuW(ID_FILE_PRINT_REPORT,0,ID_FILE_PRINT_REPORT,"Open File"); Here "Open File" is inside file menu. Now I want to change the name of "File" to "File report", for that I need to know the ID of file which is parent menu.
-
You are right, but my query is how I will get the parent menu (FILE, View,Help) using get menu. I am able to get the child menu and modifying it using ModifyMenu(); Here is my code:- CMenu *pMenu = GetMenu(); pMenu->ModifyMenuW(ID_FILE_PRINT_REPORT,0,ID_FILE_PRINT_REPORT,"Open File"); Here "Open File" is inside file menu. Now I want to change the name of "File" to "File report", for that I need to know the ID of file which is parent menu.
-
You are right, but my query is how I will get the parent menu (FILE, View,Help) using get menu. I am able to get the child menu and modifying it using ModifyMenu(); Here is my code:- CMenu *pMenu = GetMenu(); pMenu->ModifyMenuW(ID_FILE_PRINT_REPORT,0,ID_FILE_PRINT_REPORT,"Open File"); Here "Open File" is inside file menu. Now I want to change the name of "File" to "File report", for that I need to know the ID of file which is parent menu.