hi, I would like to Gray-out some commands in the system menu: Maximize and Size. My App is a dialog box, so this shouldn't involve anything like window class structure..
Any Ideas?
this should be easy.
Cheers.
And thanks to all the other ppl that helped me before.
I belive you just set the dialog's flags in your editor (OR in the *.rc file) and make sure it has the Non sizable border and does not have the maximize button style.
- Ben
Hi your mama,
You must call the GetSystemMenu API function :look
data?
hSysMenu dd ?
...
.code
...
INVOKE GetSystemMenu,hWnd,0
mov hSysMenu,eax
INVOKE DeleteMenu,hSysMenu,2,MF_BYPOSITION
INVOKE DeleteMenu,hSysMenu,3,MF_BYPOSITION
INVOKE DeleteMenu,hSysMenu,3,MF_BYPOSITION
it deletes 3 menuitems, but you can also modify them to grey them. (I use it on my new prog : www.vombonjour.fr.st/asm/asm32/anglais/Get&Set_en.zip
Vom-bonjour:-()
You can disable and gray out menu items with EnableMenuItem.