Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: About the WM_ENABLE? Pin
Weiye Chen29-Jan-04 20:26
Weiye Chen29-Jan-04 20:26 
GeneralNeed a SDK Cool Button Pin
Cael29-Jan-04 18:08
Cael29-Jan-04 18:08 
GeneralRe: Need a SDK Cool Button Pin
alex.barylski29-Jan-04 18:12
alex.barylski29-Jan-04 18:12 
GeneralRe: Need a SDK Cool Button Pin
Cael30-Jan-04 3:48
Cael30-Jan-04 3:48 
GeneralRe: Need a SDK Cool Button Pin
Michael Dunn29-Jan-04 19:43
sitebuilderMichael Dunn29-Jan-04 19:43 
GeneralDetecting that a window has closed Pin
Ryan Binns29-Jan-04 18:07
Ryan Binns29-Jan-04 18:07 
GeneralRe: Detecting that a window has closed Pin
basementman30-Jan-04 10:16
basementman30-Jan-04 10:16 
Questiondetecting logoff vs shutdown. WM_Endsession ?? Pin
rohit.dhamija29-Jan-04 18:07
rohit.dhamija29-Jan-04 18:07 
Confused | :confused: Dear All,

I am developing an dialog based application using MFC VC++ Version 6.0 for Windows 2000.

The application needs to perform certain tasks immediately before logging off /shutdown of the

system respectively.

For detecting logoff/shutdown i have handled WM_ENDSESSION event. OnEndSession call informs the

CWnd object whether the session is actually ending and this event is fired for both logoff as

well as for shutdown.

I need to detect the difference between log off event and shutdown event because I need to

perform seperate functions on logoff and shutdown.

Am I capturing the right event for handling this issue ? Also if possible please suggest any

alternate way to perform the same.

Waiting for your reply.

Regards,
Rohit
AnswerRe: detecting logoff vs shutdown. WM_Endsession ?? Pin
pankaj hedau17-Sep-10 21:43
pankaj hedau17-Sep-10 21:43 
Question0x8000?????? Pin
wow999929-Jan-04 18:06
wow999929-Jan-04 18:06 
AnswerRe: 0x8000?????? Pin
Ryan Binns29-Jan-04 18:11
Ryan Binns29-Jan-04 18:11 
GeneralRe: 0x8000?????? Pin
Steve S30-Jan-04 1:35
Steve S30-Jan-04 1:35 
GeneralRe: 0x8000?????? Pin
Ryan Binns30-Jan-04 1:56
Ryan Binns30-Jan-04 1:56 
GeneralRe: 0x8000?????? Pin
Steve S30-Jan-04 2:44
Steve S30-Jan-04 2:44 
GeneralRe: 0x8000?????? Pin
Ryan Binns30-Jan-04 3:00
Ryan Binns30-Jan-04 3:00 
GeneralRe: 0x8000?????? Pin
Tim Smith30-Jan-04 4:22
Tim Smith30-Jan-04 4:22 
GeneralRe: 0x8000?????? Pin
Ryan Binns30-Jan-04 13:25
Ryan Binns30-Jan-04 13:25 
GeneralRe: 0x8000?????? Pin
Steve S1-Feb-04 2:25
Steve S1-Feb-04 2:25 
AnswerRe: 0x8000?????? Pin
фил29-Jan-04 21:52
фил29-Jan-04 21:52 
QuestionVC++ .Net Flaw?? Pin
closecall29-Jan-04 18:01
closecall29-Jan-04 18:01 
AnswerRe: VC++ .Net Flaw?? Pin
bneacetp29-Jan-04 19:13
bneacetp29-Jan-04 19:13 
GeneralRe: VC++ .Net Flaw?? Pin
Prakash Nadar29-Jan-04 22:39
Prakash Nadar29-Jan-04 22:39 
GeneralRe: VC++ .Net Flaw?? Pin
bneacetp30-Jan-04 7:09
bneacetp30-Jan-04 7:09 
GeneralExecuting an exe in Vc++ Pin
percyvimal29-Jan-04 17:08
percyvimal29-Jan-04 17:08 
GeneralRe: Executing an exe in Vc++ Pin
Wes Aday29-Jan-04 18:00
professionalWes Aday29-Jan-04 18:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.