User defined buttons on MessageBox
-
Hi all I want to display MessageBox with "Disconnect" ,"Exit" and "Cancel" buttons....how di I?can any one help me regarding this with code example?? ThomasKennedyBose
-
Hi all I want to display MessageBox with "Disconnect" ,"Exit" and "Cancel" buttons....how di I?can any one help me regarding this with code example?? ThomasKennedyBose
yes... but you need to define your own message box (dialog box) which is pretty simple and staight forward... In the resources view, right click on the Dialog icon and select Insert Dialog. The right click on IDD_DIALOG1 in Resoure View and select Proerties. Use this window as you normally would (change the IDD_DIALOG1 to something more useful to you). You can use the properties window to chant the Caption to one of your own. Now just double click on the dialog resource and add what ever controls you would like to use. You will also need to add a class for the dialog. Use Insert|New Class from menu, if you are using MFC select MFC Class as Class Type, etc.... Give it a name like CYourNameDlg and select CDialog as the base class. YOu should also see that the ID is the name you chose. Thats about it, its ready to go. --------------------------------------------- The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately? - Just remember when you point a finger at someone else, you are only one finger away from making a fist to hit them with!
-
Hi all I want to display MessageBox with "Disconnect" ,"Exit" and "Cancel" buttons....how di I?can any one help me regarding this with code example?? ThomasKennedyBose
You can use the
MessageBoxIndirect
API. For example look this article Best regards, Eugene Pustovoyt