I have an SDK app with several popup menus defined in the .rc file. The first popup is "&File". Several menu items into this popup I have added two popup menus. Each is for a list of recent ly used files (files are for different devices and file types).
I add a single dummy entry for both of these popups in the resource script.
When my application initialized and loads its configuration, I want to add the menu items to each of these popups. I curently have a kludgy way of doing this and I know it can't be the correct/scnctioned way as it involves getting the popup menu menu
handles when the WM_MENUSELECT message i sprocessed for either of these two popups.
I have done extensive searching on the web and gone through Petzold's book thoroughly and it doesn't get this deep into menus.
Is there a way to get the menu handle for these popup menus in lieu of waiting for them to be accessed?
Here's an edited snippet of the &File popup menu with the "sub" popup menus.
Thanks,
Ron
I add a single dummy entry for both of these popups in the resource script.
When my application initialized and loads its configuration, I want to add the menu items to each of these popups. I curently have a kludgy way of doing this and I know it can't be the correct/scnctioned way as it involves getting the popup menu menu
handles when the WM_MENUSELECT message i sprocessed for either of these two popups.
I have done extensive searching on the web and gone through Petzold's book thoroughly and it doesn't get this deep into menus.
Is there a way to get the menu handle for these popup menus in lieu of waiting for them to be accessed?
Here's an edited snippet of the &File popup menu with the "sub" popup menus.
Code:
POPUP "&File" BEGIN MENUITEM "Select &xxx xxxxxx File...", %IDM_FILE_OPEN_xxx MENUITEM SEPARATOR MENUITEM "&Upload Text File xxxxxxxx...", %IDM_ULTEXTFILE MENUITEM SEPARATOR POPUP "&Recent U/L Files" BEGIN MENUITEM "&F", %IDM_RECENT_1 END MENUITEM SEPARATOR POPUP "Recent &Cxxxx U/L Files" BEGIN MENUITEM "&F", %IDM_RECENT_Cxxxx_1 END MENUITEM SEPARATOR MENUITEM "E&xit", %IDM_EXIT END
Ron
Comment