-
message box options
I use the following code to construct a message box;
void CMainFrame::OnDialogsMessage()
{
MessageBox("Message", "Title", MB_ICONEXCLAMATION);
}
What other options besides MB_ICONEXCLAMATION are available for message boxes?
When I do a search for messagebox on MSDN I get a billion results, none of
which help.
Any response anyone can give me will be greatly appreciated.
-
Re: message box options
Look in windows.h. The possibilities are
MB_ICONSTOP
MB_ICONQUESTION
MB_ICONEXCLAMATION
MB_ICONINFORMATION
MB_ICONMASK
There are also MB_ codes for the message box butttons
MB_OK
MB_OKCANCEL
MB_ABORTRETRYIGNORE
MB_YESNOCANCEL
MB_YESNO
etc.
and
MB_DEFBUTTON1
MB_DEFBUTTON2
etc.
-
Re: message box options
You need to search in the right place. Use the Index tab in MSDN (not the Search tab).
I found the help for MessageBox in mk:@MSITStore:c:\Program%20Files\Microsoft%20Visual%20Studio\MSDN98\98VSa\1033\winui.chm::/devdoc/live/pdui/dlgboxes_76bc.htm. Type in in the URL dialog box under the "Go" menu of MSDN.
Alvaro