Click here to Skip to main content
15,893,508 members
Articles / Desktop Programming / MFC

Enhanced MFC Message Boxes

Rate me:
Please Sign up or sign in to vote.
4.82/5 (37 votes)
22 Oct 2010CPOL8 min read 269.9K   7.5K   126  
How to replace the standard MFC message box with an enhanced version
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by MsgBoxTest.rc
//
#define IDR_MANIFEST                    1
#define IDD_MSGBOXTEST_DIALOG           102
#define IDD_MESSAGE_BOX                 103
#define IDR_MAINFRAME                   128
#define IDC_DISPLAY_MESSAGE_BOX         1000
#define IDS_ERROR_MESSAGE_MISSING       1001
#define IDS_RESULT_MESSAGE              1002
#define IDS_RESULT_RESET                1003
#define IDC_MESSAGE_TITLE               1004
#define IDC_MESSAGE_TEXT                1005
#define IDC_MESSAGE_STYLE               1006
#define IDC_MESSAGE_ICON                1007
#define IDC_MESSAGE_CHECKBOX            1008
#define IDC_YES_TO_ALL                  1009
#define IDC_NO_TO_ALL                   1010
#define IDC_RIGHT_ALIGN                 1011
#define IDC_NO_SOUND                    1012
#define IDC_DEFAULT_BUTTON              1013
#define IDC_DEFAULT_CHECKED             1014
#define IDC_RESET_MESSAGE_BOXES         1017
#define IDC_CHECK1                      1018
#define IDC_TIMEOUT_SECONDS             1020
#define IDC_DISABLED_TIMEOUT            1021
#define IDS_MESSAGEBOX_OK               9001
#define IDS_MESSAGEBOX_CANCEL           9002
#define IDS_MESSAGEBOX_ABORT            9003
#define IDS_MESSAGEBOX_RETRY            9004
#define IDS_MESSAGEBOX_IGNORE           9005
#define IDS_MESSAGEBOX_IGNOREALL        9006
#define IDS_MESSAGEBOX_YES              9007
#define IDS_MESSAGEBOX_YES_TO_ALL       9008
#define IDS_MESSAGEBOX_NO               9009
#define IDS_MESSAGEBOX_NO_TO_ALL        9010
#define IDS_MESSAGEBOX_CONTINUE         9011
#define IDS_MESSAGEBOX_SKIP             9012
#define IDS_MESSAGEBOX_SKIPALL          9013
#define IDS_MESSAGEBOX_HELP             9014
#define IDS_MESSAGEBOX_DONT_DISPLAY_AGAIN 9015
#define IDS_MESSAGEBOX_DONT_ASK_AGAIN   9016

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        130
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1022
#define _APS_NEXT_SYMED_VALUE           104
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions