How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form?
How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form?
This quite an odd request, as literally no one should right click on a system menu, usually. In any case have a look into these APIs :
TrackPopupMenuEx
GetSystemMenu
GetWindowRect