开发者

Disable Window Menu

In my C OpenGL app the window style requires WS_SYSMENU to show the close and minimize buttons, but it also brings up a stupid menu everytime I press a开发者_运维百科lt.

How can I disable this?


One way is to handle WM_DEADCHAR and WM_SYSCHAR and discard the press of the ALT key (or do your own processing). This will still allow the user to activate the menu with the mouse and from the taskbar... which is why you really shouldn't disable it completely, users like to be able to manipulate windows from the taskbar.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜