Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: about *p++ Pin
Maximilien7-Mar-10 2:28
Maximilien7-Mar-10 2:28 
QuestionTypedef defined Pin
Herboren6-Mar-10 21:49
Herboren6-Mar-10 21:49 
AnswerRe: Typedef defined Pin
Stephen Hewitt7-Mar-10 1:00
Stephen Hewitt7-Mar-10 1:00 
GeneralRe: Typedef defined Pin
Herboren7-Mar-10 7:11
Herboren7-Mar-10 7:11 
GeneralRe: Typedef defined Pin
Tim Craig7-Mar-10 9:21
Tim Craig7-Mar-10 9:21 
QuestionCRichEditCtrl Line Break Pin
ForNow6-Mar-10 17:01
ForNow6-Mar-10 17:01 
GeneralRe: CRichEditCtrl Line Break Pin
Rage8-Mar-10 4:35
professionalRage8-Mar-10 4:35 
QuestionExiting Application Pin
MrMcIntyre6-Mar-10 9:51
MrMcIntyre6-Mar-10 9:51 
Hi,

Please see this part of my code below for the message box that appears when the user presses the exit button, but if the user presses no on the message box the application still exit's. I have tried a good couple of times to fix it but it will not work. Please help.

case WM_KEYDOWN: <br />
		if (wParam == VK_ESCAPE)<br />
			MessageBox(NULL, L"Are you sure you want to exit?", L"My Project", MB_YESNO |MB_ICONQUESTION);<br />
		DestroyWindow(hWnd);<br />
		return 0;<br />


Thank you.
Andrew McIntyre

AnswerRe: Exiting Application Pin
LunaticFringe6-Mar-10 10:05
LunaticFringe6-Mar-10 10:05 
GeneralRe: Exiting Application Pin
MrMcIntyre6-Mar-10 10:09
MrMcIntyre6-Mar-10 10:09 
AnswerRe: Exiting Application Pin
Luc Pattyn6-Mar-10 10:09
sitebuilderLuc Pattyn6-Mar-10 10:09 
GeneralRe: Exiting Application Pin
MrMcIntyre6-Mar-10 10:15
MrMcIntyre6-Mar-10 10:15 
GeneralRe: Exiting Application Pin
Tim Craig6-Mar-10 10:26
Tim Craig6-Mar-10 10:26 
GeneralRe: Exiting Application Pin
MrMcIntyre6-Mar-10 10:32
MrMcIntyre6-Mar-10 10:32 
GeneralRe: Exiting Application Pin
MrMcIntyre6-Mar-10 10:39
MrMcIntyre6-Mar-10 10:39 
GeneralRe: Exiting Application Pin
Tim Craig6-Mar-10 11:02
Tim Craig6-Mar-10 11:02 
GeneralRe: Exiting Application Pin
LunaticFringe7-Mar-10 0:27
LunaticFringe7-Mar-10 0:27 
GeneralRe: Exiting Application Pin
Richard MacCutchan7-Mar-10 2:10
mveRichard MacCutchan7-Mar-10 2:10 
GeneralRe: Exiting Application Pin
Tim Craig7-Mar-10 9:08
Tim Craig7-Mar-10 9:08 
GeneralRe: Exiting Application Pin
LunaticFringe7-Mar-10 9:22
LunaticFringe7-Mar-10 9:22 
GeneralRe: Exiting Application Pin
Tim Craig7-Mar-10 13:27
Tim Craig7-Mar-10 13:27 
QuestionCompiling .cpp made from Matlab > Errors Pin
skyhr6-Mar-10 4:20
skyhr6-Mar-10 4:20 
AnswerRe: Compiling .cpp made from Matlab > Errors Pin
Eugen Podsypalnikov6-Mar-10 8:57
Eugen Podsypalnikov6-Mar-10 8:57 
GeneralRe: Compiling .cpp made from Matlab > Errors Pin
skyhr6-Mar-10 9:47
skyhr6-Mar-10 9:47 
GeneralRe: Compiling .cpp made from Matlab > Errors Pin
Richard MacCutchan6-Mar-10 21:26
mveRichard MacCutchan6-Mar-10 21:26 

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.