wxTopLevelWindows.Append(this);
SetName(name);
+ wxWindowBase::Show(TRUE); // MDI child frame starts off shown
m_windowStyle = style;
if (parent) parent->AddChild(this);
// the MDI parent frame window proc
// ---------------------------------------------------------------------------
-MRESULT wxMDIParentFrame::OS2WindowProc(HWND hwnd,
- WXUINT message,
+MRESULT wxMDIParentFrame::OS2WindowProc(WXUINT message,
WXWPARAM wParam,
WXLPARAM lParam)
{
return FALSE;
}
-MRESULT wxMDIParentFrame::OS2DefWindowProc(HWND hwnd,
- WXUINT message,
+MRESULT wxMDIParentFrame::OS2DefWindowProc(WXUINT message,
WXWPARAM wParam,
WXLPARAM lParam)
{
// MDI window proc and message handlers
// ---------------------------------------------------------------------------
-MRESULT wxMDIChildFrame::OS2WindowProc(HWND hwnd,
- WXUINT message,
+MRESULT wxMDIChildFrame::OS2WindowProc(WXUINT message,
WXWPARAM wParam,
WXLPARAM lParam)
{
// MDI specific message translation/preprocessing
// ---------------------------------------------------------------------------
-MRESULT wxMDIChildFrame::OS2DefWindowProc(HWND hwnd, WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
+MRESULT wxMDIChildFrame::OS2DefWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
{
// TODO
/*
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
+
}
// ---------------------------------------------------------------------------