26#ifndef LOGGINGMESSAGEDIALOG_H
27#define LOGGINGMESSAGEDIALOG_H
41 wxString caption = wxMessageBoxCaptionStr,
42 long style = wxOK|wxCENTRE,
const wxPoint &pos = wxDefaultPosition):
43 wxMessageDialog (parent, message, caption, style, pos)
45 wxString logString = message;
46 logString.Replace(wxS(
"%"), wxS(
"%%"));
47 wxLogMessage(logString);
48 wxLogMessage(message);
52extern int LoggingMessageBox(
const wxString & message,
53 const wxString & caption = wxString(wxMessageBoxCaptionStr),
54 int style = wxOK|wxCENTRE,
55 wxWindow * parent = NULL,
56 int x = wxDefaultCoord,
57 int y = wxDefaultCoord
A message dialog that sends its contents to the log message sink.
Definition: LoggingMessageDialog.h:38