简体   繁体   中英

Menu without submenus using resource script or CMenu functions

I want to create a menu without any submenus.
A common way to create a menu is:

BEGIN
   POPUP "File"
   BEGIN
      MENUITEM "Copy", IDM_EDIT_COPY
      MENUITEM "Paste", IDM_EDIT_PASTE
   END
   ...
END

Now I just want "File" without the submenus "Copy" and "Paste" . How do I achieve this?

Did you try

BEGIN
   MENUITEM "File", ID_FILE
   ...
END

?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM