Return to Snippet

Revision: 17455
at September 5, 2009 12:12 by richardw


Initial Code
switch (Application->MessageBox("    真的要退出吗?    ", Application->Title.c_str(), MB_OKCANCEL + MB_ICONQUESTION + MB_TOPMOST))
{
    case IDOK:
    {
        Action = caFree;
        break;
    }
    case IDCANCEL:
    {
        Action = caNone;
        break;
    }
}



    dlgInfo->ButtonCount = 2;
    dlgInfo->Caption = "注意";
    dlgInfo->IconType = suiWarning;
    dlgInfo->Text = "要退出吗?";
    if (dlgInfo->ShowModal() == mrOk)
    {
        Action = caFree;
    }
    else
    {
        Action = caNone;
    }

Initial URL

                                

Initial Description

                                

Initial Title
程序确认退出

Initial Tags

                                

Initial Language
C++