Click here to Skip to main content
15,911,762 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Why wifstream can not read in numbers? Pin
«_Superman_»1-Nov-09 12:18
professional«_Superman_»1-Nov-09 12:18 
AnswerRe: Why wifstream can not read in numbers? Pin
transoft2-Nov-09 1:35
transoft2-Nov-09 1:35 
GeneralRe: Why wifstream can not read in numbers? Pin
«_Superman_»2-Nov-09 4:06
professional«_Superman_»2-Nov-09 4:06 
GeneralRe: Why wifstream can not read in numbers? [modified] Pin
transoft2-Nov-09 5:24
transoft2-Nov-09 5:24 
QuestionExit Message Box Pin
MrMcIntyre1-Nov-09 8:56
MrMcIntyre1-Nov-09 8:56 
AnswerRe: Exit Message Box Pin
«_Superman_»1-Nov-09 9:24
professional«_Superman_»1-Nov-09 9:24 
GeneralRe: Exit Message Box [modified] Pin
MrMcIntyre1-Nov-09 9:33
MrMcIntyre1-Nov-09 9:33 
GeneralRe: Exit Message Box Pin
«_Superman_»1-Nov-09 9:46
professional«_Superman_»1-Nov-09 9:46 
case WM_CLOSE:
    if (MB_YES == MessageBox(hwnd, _T("Are you sure you want to exit?"), _T("Confirmation"), MB_YESNO))
        DestroyWindow(hwnd);

    return 0;

For MFC it could look like this -
void CYourClass::OnClose()
{
    if (MB_YES == MessageBox(hwnd, _T("Are you sure you want to exit?"), _T("Confirmation"), MB_YESNO))
        DestroyWindow(hwnd);
}


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

Microsoft MVP (Visual C++)

GeneralRe: Exit Message Box Pin
MrMcIntyre1-Nov-09 9:57
MrMcIntyre1-Nov-09 9:57 
GeneralRe: Exit Message Box Pin
«_Superman_»1-Nov-09 10:00
professional«_Superman_»1-Nov-09 10:00 
GeneralRe: Exit Message Box Pin
MrMcIntyre1-Nov-09 10:04
MrMcIntyre1-Nov-09 10:04 
GeneralRe: Exit Message Box Pin
MrMcIntyre1-Nov-09 10:48
MrMcIntyre1-Nov-09 10:48 
GeneralRe: Exit Message Box Pin
hxhl951-Nov-09 13:16
hxhl951-Nov-09 13:16 
GeneralRe: Exit Message Box Pin
David Crow2-Nov-09 2:58
David Crow2-Nov-09 2:58 
GeneralRe: Exit Message Box Pin
MrMcIntyre2-Nov-09 10:52
MrMcIntyre2-Nov-09 10:52 
AnswerRe: Exit Message Box Pin
David Crow2-Nov-09 10:54
David Crow2-Nov-09 10:54 
GeneralRe: Exit Message Box [modified] Pin
MrMcIntyre2-Nov-09 10:59
MrMcIntyre2-Nov-09 10:59 
QuestionRe: Exit Message Box Pin
David Crow2-Nov-09 11:04
David Crow2-Nov-09 11:04 
AnswerRe: Exit Message Box Pin
MrMcIntyre2-Nov-09 11:26
MrMcIntyre2-Nov-09 11:26 
GeneralRe: Exit Message Box Pin
MrMcIntyre2-Nov-09 11:28
MrMcIntyre2-Nov-09 11:28 
GeneralRe: Exit Message Box Pin
David Crow2-Nov-09 16:43
David Crow2-Nov-09 16:43 
Questionmaking calculator using MFC c++ Pin
goutom roy1-Nov-09 8:19
goutom roy1-Nov-09 8:19 
AnswerRe: making calculator using MFC c++ Pin
«_Superman_»1-Nov-09 8:47
professional«_Superman_»1-Nov-09 8:47 
AnswerRe: making calculator using MFC c++ Pin
CPallini1-Nov-09 9:59
mveCPallini1-Nov-09 9:59 
AnswerRe: making calculator using MFC c++ Pin
David Crow2-Nov-09 3:03
David Crow2-Nov-09 3:03 

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.