How do I get a menu bar by using a resource ID?
-
Hi, this app is in C++ using Visual Studio 6.0, without MFC. Basically I need to get the main menu of my application as an HMENU; this is the menu that has "File," "About," etc. The menu has a resource ID: IDC_MAINMENU. GetDlgItem doesn't seem to work. GetSystemMenu is the wrong menu. Is there a way I can get the primary menu of my application by using a resource ID? If not, is there another way to do it? Thanks!
KR
-
Hi, this app is in C++ using Visual Studio 6.0, without MFC. Basically I need to get the main menu of my application as an HMENU; this is the menu that has "File," "About," etc. The menu has a resource ID: IDC_MAINMENU. GetDlgItem doesn't seem to work. GetSystemMenu is the wrong menu. Is there a way I can get the primary menu of my application by using a resource ID? If not, is there another way to do it? Thanks!
KR
-
-
Hi, this app is in C++ using Visual Studio 6.0, without MFC. Basically I need to get the main menu of my application as an HMENU; this is the menu that has "File," "About," etc. The menu has a resource ID: IDC_MAINMENU. GetDlgItem doesn't seem to work. GetSystemMenu is the wrong menu. Is there a way I can get the primary menu of my application by using a resource ID? If not, is there another way to do it? Thanks!
KR
Like this: m_menu=GetMenu(); m_menu=m_Menu->GetSubmenu(0);