wxMessageBox

From WxWiki
Revision as of 19:36, 19 October 2018 by Tierra (talk | contribs) (Text replacement - "<source>" to "<syntaxhighlight lang="cpp">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

wxMessageBox is a dialog function which displays a messagebox with an optional icon.

Example

#include <wx/msgdlg.h>

wxMessageBox( wxT("Hello World!") );

int i = 7;
wxString Foobar;
Foobar.Printf( wxT("Hello I have %d cookies."), i); 
wxMessageBox(Foobar);

wxMessageBox( wxT("This is the message."), wxT("This is the title"), wxICON_INFORMATION);

See also

wxMessageBox