X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a96b4743ff1eb85279194a28f7c388dc5fcab648..b3fcfa4d89d44425ed28050462c6064100fe7b05:/src/msw/frame.cpp diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 75a1b4e4ef..6cf9c3a2d8 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -326,7 +326,7 @@ void wxFrame::AttachMenuBar(wxMenuBar *menubar) wxToolBar* toolBar = new wxToolBar(this, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE | wxTB_HORIZONTAL, - wxToolBarNameStr, GetMenuBar()); + wxToolBarNameStr, menubar); SetToolBar(toolBar); menubar->SetToolBar(toolBar); } @@ -864,9 +864,9 @@ bool wxFrame::HandleMenuLoop(const wxEventType& evtType, WXWORD isPopup) // the window proc for wxFrame // --------------------------------------------------------------------------- -long wxFrame::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) +WXLRESULT wxFrame::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) { - long rc = 0; + WXLRESULT rc = 0; bool processed = FALSE; switch ( message )