I am trying to retrieve the wParam from the tagMSG structure of Windows API GetMessage to detect the SC_CLOSE value sent when the user selects "Close CtrL+F4" from the Windows system title bar menu. However, I can not detect any form event that fires when the user opens that menu, scrolls down to the close option, and presses the "Enter" key.
Does anyone know how to trap WM_SYSCOMMAND messages sent when users select options from the windows system menu on a form's title bar?
Thank you very much for your help!!
Brent Hackett
Deseret Trust Company
801.433.1513
hackettbl@deserettrust.com
Brent L. Hackett