]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/mdi.cpp
Merged some STC fixes over to the main branch
[wxWidgets.git] / src / os2 / mdi.cpp
index b0142bab6835d5b9c4b64f1653631e9e1a60c808..37b17ad0185aee7f6744ba3a29f977791955e259 100644 (file)
@@ -996,7 +996,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
+
 }
 
 // ---------------------------------------------------------------------------