Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get the default value of the registry? Pin
deadlyabbas17-Sep-09 1:10
deadlyabbas17-Sep-09 1:10 
AnswerRe: How to get the default value of the registry? Pin
David Crow17-Sep-09 2:07
David Crow17-Sep-09 2:07 
QuestionCannot see windows XP styles on MFC controls Pin
itsmerajesh17-Sep-09 0:57
itsmerajesh17-Sep-09 0:57 
AnswerRe: Cannot see windows XP styles on MFC controls Pin
Naveen17-Sep-09 1:08
Naveen17-Sep-09 1:08 
GeneralRe: Cannot see windows XP styles on MFC controls Pin
krmed17-Sep-09 7:09
krmed17-Sep-09 7:09 
GeneralRe: Cannot see windows XP styles on MFC controls Pin
Naveen17-Sep-09 17:42
Naveen17-Sep-09 17:42 
Questionexecuting .bat file in Vista64 bit Pin
Madan Chauhan17-Sep-09 0:43
Madan Chauhan17-Sep-09 0:43 
AnswerRe: executing .bat file in Vista64 bit Pin
«_Superman_»17-Sep-09 1:01
professional«_Superman_»17-Sep-09 1:01 
GeneralRe: executing .bat file in Vista64 bit Pin
Madan Chauhan17-Sep-09 1:26
Madan Chauhan17-Sep-09 1:26 
QuestionRe: executing .bat file in Vista64 bit Pin
Randor 17-Sep-09 1:03
professional Randor 17-Sep-09 1:03 
QuestionRe: executing .bat file in Vista64 bit Pin
David Crow17-Sep-09 2:13
David Crow17-Sep-09 2:13 
QuestionHow to get the path of Acrobat Reader Exe by C++ Pin
deadlyabbas17-Sep-09 0:15
deadlyabbas17-Sep-09 0:15 
AnswerRe: How to get the path of Acrobat Reader Exe by C++ Pin
«_Superman_»17-Sep-09 0:31
professional«_Superman_»17-Sep-09 0:31 
GeneralRe: How to get the path of Acrobat Reader Exe by C++ Pin
David Crow17-Sep-09 2:22
David Crow17-Sep-09 2:22 
GeneralRe: How to get the path of Acrobat Reader Exe by C++ Pin
Nuri Ismail17-Sep-09 3:50
Nuri Ismail17-Sep-09 3:50 
QuestionRe: How to get the path of Acrobat Reader Exe by C++ Pin
Randor 17-Sep-09 0:36
professional Randor 17-Sep-09 0:36 
AnswerRe: How to get the path of Acrobat Reader Exe by C++ Pin
Naveen17-Sep-09 0:37
Naveen17-Sep-09 0:37 
AnswerRe: How to get the path of Acrobat Reader Exe by C++ Pin
David Crow17-Sep-09 2:15
David Crow17-Sep-09 2:15 
QuestionHow to widen the drop down portion of combo box. Pin
Alex@9C16-Sep-09 23:15
Alex@9C16-Sep-09 23:15 
AnswerRe: How to widen the drop down portion of combo box. Pin
«_Superman_»16-Sep-09 23:33
professional«_Superman_»16-Sep-09 23:33 
GeneralRe: How to widen the drop down portion of combo box. Pin
Naveen17-Sep-09 0:24
Naveen17-Sep-09 0:24 
GeneralRe: How to widen the drop down portion of combo box. Pin
«_Superman_»17-Sep-09 0:25
professional«_Superman_»17-Sep-09 0:25 
GeneralRe: How to widen the drop down portion of combo box. Pin
Alex@9C17-Sep-09 1:04
Alex@9C17-Sep-09 1:04 
QuestionStopping windows shutdown in C++./MFC? Pin
Kushagra Tiwari16-Sep-09 22:50
Kushagra Tiwari16-Sep-09 22:50 
AnswerRe: Stopping windows shutdown in C++./MFC? Pin
«_Superman_»16-Sep-09 23:06
professional«_Superman_»16-Sep-09 23:06 
The documentation for WM_QUERYENDSESSION says that the WM_ENDSESSION message is sent after the former message is processed. You could try ShellExecute in the WM_ENDSESSION handler.

The documentation also says that after 5 seconds the system displays information about the applications that are blocking shutdown so that the user can manually end the application. So I don't think you have much time here.

It's probably a good idea to review the requirements or design and look for alternatives.

«_Superman
I love work. It gives me something to do between weekends.

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.