Catch RMB click on taskbar button?

Windows specific forum
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Catch RMB click on taskbar button?

Post 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?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Why can't use #WS_SYSMENU?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

You can catch #WM_NCACTIVATE in a callback, it should work.
BERESHEIT
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post 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.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Post Reply