Modify menu

Modify menu

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

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de Jugoslav Dujic

Use either

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)).
Jugoslav www.xeffort.com

Inicie sesión para dejar un comentario.