rbtray icon indicating copy to clipboard operation
rbtray copied to clipboard

Right click on Close button to minimize

Open Prtoyy opened this issue 5 years ago • 2 comments

Hello! Is it possible to change (or to add) the method of minimizing to right click on close button of the window? If I can change something in the source code by myself, what should I do?

Prtoyy avatar Feb 11 '21 08:02 Prtoyy

Hi @Prtoyy,

You could try playing with this code (I recommend using the v4.11 tag instead of the latest code):

https://github.com/benbuck/rbtray/blob/4a4f54de0578f0ef955dd1c0e07d7d67f4f11dea/RBHook.cpp#L46

Instead of HTMINBUTTON you could try using HTCLOSE. These are documented here:

https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-nchittest

Please note that debugging the hook code is extremely difficult due to how it integrates into the OS.

Good luck, Benbuck

benbuck avatar Feb 11 '21 22:02 benbuck

Hi @Prtoyy,

Did you have a chance to try this out?

Thanks, Benbuck

benbuck avatar Jul 06 '22 07:07 benbuck