Click here to Skip to main content
15,884,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in .rc file
I want to add main menu without any submenu
Example source code,

POPUP "New"
BEGIN
MENUITEM ~~
~~
END
POPUP "Edit"

in this case, 'New' menu gets submenu by using MENUTIME
But what I want to do is that POPUP "Edit" without any submenu
when it is compiled like above code, program gets errors.
How do I do that?
Posted

Make it a MENUITEM rather than a POPUP like this:
C++
POPUP "New"
BEGIN
MENUITEM ~~
~~ 
END
MENUITEM "Edit"  ID_~~
 
Share this answer
 
C++
IDM_MAINMENU MENU 
BEGIN
    MENUITEM "First",                       ID_FIRST
    MENUITEM "Second",                      ID_SECOND
END

Is a line of menu items without popups.
Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900