Need a help with CDialog and WM_QWERYENDSESSION
-
I have a CDialog based app, and I need to check restart/shutdown of the system. I should ask an user with confirmation, before closing app ( when presented the active threads ). Why WM_QUERYENDSESSION in PreTranslate does not work? Pavel Sokolov, CEZEO software, LanTalk Network, http://www.cezeo.com http://www.lantalk.net
-
I have a CDialog based app, and I need to check restart/shutdown of the system. I should ask an user with confirmation, before closing app ( when presented the active threads ). Why WM_QUERYENDSESSION in PreTranslate does not work? Pavel Sokolov, CEZEO software, LanTalk Network, http://www.cezeo.com http://www.lantalk.net
I don't quite understand what you are asking, but if you want to restart or shutdown Windows, call ExitWindowEx(). _____________________ "They'd dearly make us pay For laughing in their faces And making it our way" -Love My Way, Psychedelic Furs
-
I don't quite understand what you are asking, but if you want to restart or shutdown Windows, call ExitWindowEx(). _____________________ "They'd dearly make us pay For laughing in their faces And making it our way" -Love My Way, Psychedelic Furs
I have tired to catch WM_QWERYENDSESSION in the PreTranslateMsg but this is not work. I found the right way, afx_msg OnQweryEndSession() ... Pavel Sokolov, CEZEO software, LanTalk Network, http://www.cezeo.com http://www.lantalk.net