Page 1 of 1

Catch RMB click on taskbar button?

Posted: Thu Sep 28, 2006 9:15 pm
by Fluid Byte
I have a window without the #WS_SYSMENU style so it won't show the default system menu when you do a right click on the taskbar because I want to make my own.

So how do I catch a right mouse button click event on a taskbar button?

Posted: Thu Sep 28, 2006 9:22 pm
by Trond
Why can't use #WS_SYSMENU?

Posted: Thu Sep 28, 2006 9:25 pm
by netmaestro
You can catch #WM_NCACTIVATE in a callback, it should work.

Posted: Mon Oct 02, 2006 1:40 pm
by Fluid Byte
netmaestro wrote:You can catch #WM_NCACTIVATE in a callback, it should work.
Thanks netmaestro, that does the trick. As well as using the #WM_ACTIVATE message, doesn't seem to make a difference.