X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a885d89ae9c9d6ff5275cb5b1ea3087132aacf8c..5fe143dfdfa19c4fe8e15abfa933940fb51662e5:/src/os2/mdi.cpp diff --git a/src/os2/mdi.cpp b/src/os2/mdi.cpp index b0142bab68..800232b152 100644 --- a/src/os2/mdi.cpp +++ b/src/os2/mdi.cpp @@ -138,6 +138,7 @@ bool wxMDIParentFrame::Create(wxWindow *parent, wxTopLevelWindows.Append(this); SetName(name); + wxWindowBase::Show(TRUE); // MDI child frame starts off shown m_windowStyle = style; if (parent) parent->AddChild(this); @@ -996,7 +997,12 @@ MRESULT wxMDIChildFrame::OS2DefWindowProc(WXUINT message, WXWPARAM wParam, WXLPA bool wxMDIChildFrame::OS2TranslateMessage(WXMSG* msg) { - return m_acceleratorTable.Translate(GetParent(), msg); +#if wxUSE_ACCEL + return m_acceleratorTable.Translate(GetParent()->GetHWND(), msg); +#else + return FALSE; +#endif //wxUSE_ACCEL + } // ---------------------------------------------------------------------------