- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to know how we can disable the main menuitems like the File,Edit, Help, etc so that I don't have to individually modify each subitem.Thanks in advance,
-SD
I would like to know how we can disable the main menuitems like the File,Edit, Help, etc so that I don't have to individually modify each subitem.Thanks in advance,
-SD
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use either
(+1 in the first example is because the first (File) menu is numbered 0).
Note that you have to call
To change menu string, use:
dummyl=EnableMenuItem(ghchildMenu, indItem+1, MF_GRAYED+MF_BYPOSITION)or
dummyl=EnableMenuItem(ghchildMenu, IDM_FILE, MF_GRAYED+MF_BYCOMMAND)
(+1 in the first example is because the first (File) menu is numbered 0).
Note that you have to call
DrawMenuBar(hwndParent) immediately after to update the change. To change menu string, use:
dummyI = ModifyMenu(hMenu, IDM_SOMETHING, MF_BYCOMMAND+MF_STRING, 0, LOC("&NewString"C)).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page