E
E
Egor2015-08-15 21:28:22
Programming
Egor, 2015-08-15 21:28:22

How to override the behavior on double click on the icon in the upper left corner of the title bar of a Windows window?

On Windows, almost every window has a button/icon/area in the upper left corner of the title (window). If you double click on this button/icon, the window will close. Clicking on the icon opens the "Window Properties" menu. The same menu appears if you right-click on the window title.
I am writing a program that expands this menu. Actually my project has only one problem. By default, double-clicking this button closes the window. It interferes. Can this behavior be overridden? As far as I know there is no standard way to do this. Can this be done in some way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor, 2015-08-15
@GBreazz

I will add that the hook on WM_NCLBUTTONDBLCLK does not solve the problem. The window closes, and it is necessary that it does not close.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question