wxMessageBox

From WxWiki
Jump to: navigation, 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