Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A drop-in replacement for MessageBox()

, 4 Jan 2005
Other articles describe replacements for MessageBox() with extra buttons for "Yes to All" and "No to All", but you still have to write the code to handle those buttons. This article presents a class that does all the work for you.
crhyesnotoalldialogapp.zip
CRHYesNoToAllDialogApp.dsp
CRHYesNoToAllDialogApp.dsw
Release
CRHYesNoToAllDialogApp.exe
res
CRHYesNoToAllDialogApp.ico
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by CRHYesNoToAllDialogApp.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_CRHYESNOTOALLDIALOGAPP_DIALOG 102
#define IDR_MAINFRAME                   128
#define IDC_THE_LIST                    1000
#define IDC_EDIT_NUMBER_OF_LINES        1008
#define IDC_BUTTON_MESSAGEBOX           1010
#define IDC_BUTTON_CRHMESSAGEBOX        1011
#define IDC_BUTTON_CWNDMESSAGEBOX       1012

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        131
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1015
#define _APS_NEXT_SYMED_VALUE           101
#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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Chris Hills
Software Developer (Senior)
United Kingdom United Kingdom
I've been programming computers since about 1968. I started at school with Algol 60 on an Elliott 803. From there I progressed through the Z80 and other microprocessors to the PC, DOS and Windows, Pascal, C and C++.
 
My other interests include astronomy and classical music. All of my contributions to Code Project have arisen from programs I've written in these areas.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150327.1 | Last Updated 4 Jan 2005
Article Copyright 2005 by Chris Hills
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid