X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bf4189d96db28d4e13d9c4d6e94f7492baccb1d..4eb7c4b180d2ddf44f9b82e5d56c81fcdc530f64:/samples/toolbar/toolbar.cpp diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index 507af20593..4699c18703 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -380,7 +380,6 @@ MyFrame::MyFrame(wxFrame* parent, : wxFrame(parent, id, title, pos, size, style) { m_tbar = NULL; - m_textWindow = new wxTextCtrl(this, -1, _T(""), wxPoint(0, 0), wxSize(-1, -1), wxTE_MULTILINE); m_smallToolbar = TRUE; m_horzToolbar = TRUE; @@ -458,6 +457,8 @@ MyFrame::MyFrame(wxFrame* parent, // Create the toolbar RecreateToolbar(); + + m_textWindow = new wxTextCtrl(this, -1, _T(""), wxPoint(0, 0), wxSize(-1, -1), wxTE_MULTILINE); } #if USE_GENERIC_TBAR