Right click on Close button to minimize
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?
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
Hi @Prtoyy,
Did you have a chance to try this out?
Thanks, Benbuck