The message when the dialog is covered
-
I Search the message when a dialog is covered by other windows. I want to close the dialog when the user hide this with the mouse when he selects a other application for example. Thanks
-
I Search the message when a dialog is covered by other windows. I want to close the dialog when the user hide this with the mouse when he selects a other application for example. Thanks
Check out the
WM_ACTIVATE
andWM_ACTIVATEAPP
messages.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Check out the
WM_ACTIVATE
andWM_ACTIVATEAPP
messages.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
THANKS void CDialog::OnActivate( UINT nState, CWnd* pWndOther, BOOL bMinimized ) { if(nState==WA_INACTIVE) { CDialog::OnOK(); } CDialog::OnActivate(nState, pWndOther, bMinimized); }