X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/400735a8faab8e8d936b9af6455356f065483699..9406d962ccf50d63f163896a2dd94123a2a8664a:/src/msw/mdi.cpp diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 0e90215e9d..f893117e5f 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -82,7 +82,6 @@ wxMDIParentFrame::wxMDIParentFrame(void) m_currentChild = NULL; m_windowMenu = 0; m_parentFrameActive = TRUE; - m_frameToolBar = NULL ; } bool wxMDIParentFrame::Create(wxWindow *parent, @@ -95,7 +94,6 @@ bool wxMDIParentFrame::Create(wxWindow *parent, { m_defaultIcon = (WXHICON) (wxSTD_MDIPARENTFRAME_ICON ? wxSTD_MDIPARENTFRAME_ICON : wxDEFAULT_MDIPARENTFRAME_ICON); - m_frameToolBar = NULL ; m_clientWindow = NULL; m_currentChild = NULL; m_windowMenu = 0; @@ -609,7 +607,7 @@ bool wxMDIParentFrame::MSWProcessMessage(WXMSG* msg) return TRUE; if (m_acceleratorTable != (WXHANDLE) NULL && - ::TranslateAccelerator((HWND) GetHWND(), (HANDLE) m_acceleratorTable, pMsg)) + ::TranslateAccelerator((HWND) GetHWND(), (HACCEL) m_acceleratorTable, pMsg)) return TRUE; if (pMsg->message == WM_KEYDOWN || pMsg->message == WM_SYSKEYDOWN) @@ -818,7 +816,7 @@ void wxMDIChildFrame::SetMenuBar(wxMenuBar *menu_bar) wxMDIParentFrame *parent = (wxMDIParentFrame *)GetParent(); parent->m_parentFrameActive = FALSE; - HMENU subMenu = GetSubMenu((HWND) parent->GetWindowMenu(), 0); + HMENU subMenu = GetSubMenu((HMENU) parent->GetWindowMenu(), 0); // Try to insert Window menu in front of Help, otherwise append it. int N = GetMenuItemCount(menu); @@ -960,7 +958,7 @@ bool wxMDIChildFrame::MSWProcessMessage(WXMSG *msg) { wxFrame *parent = (wxFrame *)GetParent(); HWND parent_hwnd = (HWND) parent->GetHWND(); - return (::TranslateAccelerator(parent_hwnd, (HANDLE) m_acceleratorTable, pMsg) != 0); + return (::TranslateAccelerator(parent_hwnd, (HACCEL) m_acceleratorTable, pMsg) != 0); } return FALSE; }