]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/mdi.cpp
removed copystring function already defined in common wx utilities
[wxWidgets.git] / src / os2 / mdi.cpp
index 2c36bb8c0d1cbdae47e5113197685ece5b5ceb81..800232b1528ceffb060be1cc7421632b34889677 100644 (file)
@@ -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)
 {
+#if wxUSE_ACCEL
     return m_acceleratorTable.Translate(GetParent()->GetHWND(), msg);
+#else
+    return FALSE;
+#endif  //wxUSE_ACCEL
+
 }
 
 // ---------------------------------------------------------------------------