X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a393585a1e1695cf397aaf0951685bf0ccaf640e..209bf722732b876a37ead91216f270d95e6880d1:/samples/debugrpt/debugrpt.cpp diff --git a/samples/debugrpt/debugrpt.cpp b/samples/debugrpt/debugrpt.cpp index ff6266a57f..61f58a1394 100644 --- a/samples/debugrpt/debugrpt.cpp +++ b/samples/debugrpt/debugrpt.cpp @@ -14,7 +14,9 @@ // ---------------------------------------------------------------------------- #include "wx/app.h" +#include "wx/log.h" #include "wx/frame.h" +#include "wx/icon.h" #include "wx/menu.h" #include "wx/msgdlg.h" #include "wx/button.h" @@ -113,7 +115,7 @@ public: // ---------------------------------------------------------------------------- // just some functions to get a slightly deeper stack trace -static void bar(const wxChar *p) +static void bar(const char *p) { char *pc = 0; *pc = *p; @@ -123,15 +125,15 @@ static void bar(const wxChar *p) void baz(const wxString& s) { - printf("baz: %s\n", s.c_str()); + printf("baz: %s\n", (const char*)s.c_str()); } void foo(int n) { if ( n % 2 ) - baz(wxT("odd")); + baz("odd"); else - bar(wxT("even")); + bar("even"); } // ---------------------------------------------------------------------------- @@ -167,7 +169,7 @@ private: // number of lines drawn in OnPaint() int m_numLines; - DECLARE_NO_COPY_CLASS(MyFrame) + wxDECLARE_NO_COPY_CLASS(MyFrame); DECLARE_EVENT_TABLE() }; @@ -202,7 +204,7 @@ public: private: bool m_uploadReport; - DECLARE_NO_COPY_CLASS(MyApp) + wxDECLARE_NO_COPY_CLASS(MyApp); }; IMPLEMENT_APP(MyApp) @@ -227,7 +229,8 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame) END_EVENT_TABLE() MyFrame::MyFrame() - : wxFrame(NULL, wxID_ANY, _T("wxWidgets Debug Report Sample")) + : wxFrame(NULL, wxID_ANY, _T("wxWidgets Debug Report Sample"), + wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE|wxDEFAULT_FRAME_STYLE) { m_numLines = 10;