Discussion:
capture menubar
(too old to reply)
battles
2010-12-07 16:10:28 UTC
Permalink
I need to capture the menu bar button in a program to make it do
something other than Max/Min the program's window when the button is
clicked. Any way to do this? Thanks.
Jamie
2010-12-07 22:58:51 UTC
Permalink
Post by battles
I need to capture the menu bar button in a program to make it do
something other than Max/Min the program's window when the button is
clicked. Any way to do this? Thanks.
WM_SYSCOMMAND

Monitor that windows message..

you need to look for the SC_MAXIMIZE and SC_MINIMIZE
flags in the hCmdType.

Make sure you pass the message on as un handled unless
you are trying to block something ?


Jamie..
Maarten Wiltink
2010-12-08 08:41:29 UTC
Permalink
Post by battles
I need to capture the menu bar button in a program to make it do
something other than Max/Min the program's window when the button is
clicked. Any way to do this? Thanks.
That's not yours to mess with. People have reasonable expectations about
what it will do.

Any _reason_ to do this? What do you want to make it do anyway?

Groetjes,
Maarten Wiltink

Loading...