X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6ebb51430cd8e4a9a11c6c5a5ca7c3ff9d7a72a..76db86e7e18d308dec0b0d6e9ab817775a8ab278:/src/os2/frame.cpp diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index 47169e8359..80c284ad61 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -51,7 +51,9 @@ bool wxFrame::m_useNativeStatusBar = FALSE; wxFrame::wxFrame() { +#if wxUSE_TOOLBAR m_frameToolBar = NULL ; +#endif m_frameMenuBar = NULL; m_frameStatusBar = NULL; @@ -74,7 +76,9 @@ bool wxFrame::Create( wxWindow *parent SetName(name); m_windowStyle = style; m_frameMenuBar = NULL; +#if wxUSE_TOOLBAR m_frameToolBar = NULL ; +#endif m_frameStatusBar = NULL; SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_APPWORKSPACE)); @@ -666,6 +670,7 @@ bool wxFrame::ProcessCommand(int id) wxPoint wxFrame::GetClientAreaOrigin() const { wxPoint pt(0, 0); +#if wxUSE_TOOLBAR if (GetToolBar()) { int w, h; @@ -680,6 +685,7 @@ wxPoint wxFrame::GetClientAreaOrigin() const pt.y += h; } } +#endif return pt; } @@ -905,7 +911,9 @@ bool wxFrame::HandleSize(int x, int y, WXUINT id) if ( !m_iconized ) { PositionStatusBar(); +#if wxUSE_TOOLBAR PositionToolBar(); +#endif wxSizeEvent event(wxSize(x, y), m_windowId); event.SetEventObject( this );