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.
Posted on 2001-01-18 13:26:00 by your mama
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
Posted on 2001-01-18 21:01:00 by cyberben
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:-()
Posted on 2001-01-18 21:02:00 by Vom-bonjour:-()
You can disable and gray out menu items with EnableMenuItem.
Posted on 2001-01-18 23:37:00 by tank