X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47c93b637e9016ffcd3010b4d785d26f5b746b98..4c7852186d48a5b8f406462c2c3fa020f0a052bb:/samples/toolbar/toolbar.cpp diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index c0a98dd8dc..c839ceee55 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -152,6 +152,8 @@ private: const int ID_TOOLBAR = 500; +static const long TOOLBAR_STYLE = wxNO_BORDER | wxTB_FLAT | wxTB_DOCKABLE; + enum { IDM_TOOLBAR_TOGGLETOOLBARSIZE = 200, @@ -240,7 +242,7 @@ void MyFrame::RecreateToolbar() SetToolBar(NULL); - long style = wxNO_BORDER | wxTB_FLAT | wxTB_DOCKABLE; + long style = TOOLBAR_STYLE; style |= m_horzToolbar ? wxTB_HORIZONTAL : wxTB_VERTICAL; toolBar = CreateToolBar(style, ID_TOOLBAR); @@ -465,7 +467,7 @@ void MyFrame::OnToggleAnotherToolbar(wxCommandEvent& WXUNUSED(event)) { m_tbar = new wxToolBar(this, -1, wxDefaultPosition, wxDefaultSize, - wxTB_VERTICAL); + TOOLBAR_STYLE | wxTB_VERTICAL); m_tbar->AddTool(wxID_HELP, wxBITMAP(help), wxNullBitmap, FALSE, NULL, @@ -604,8 +606,6 @@ void MyFrame::OnToolEnter(wxCommandEvent& event) void MyFrame::OnToggleFullScreen(wxCommandEvent& event) { -#ifdef __WXMSW__ ShowFullScreen(!IsFullScreen()); -#endif }