wxWindowList wxModelessWindows;
// the name of the default wxWindows class
-extern const wxChar* wxCanvasClassName;
-extern const wxChar* wxFrameClassName;
+extern void wxAssociateWinWithHandle( HWND hWnd
+ ,wxWindowOS2* pWin
+ );
// ============================================================================
// wxTopLevelWindowMSW implementation
}
HWND hWndDlg;
- HWND hWndParent;
+ HWND hWndOwner;
if (pParent)
- hWndParent = GetHwndOf(pParent);
+ hWndOwner = GetHwndOf(pParent);
else
- hWndParent = HWND_DESKTOP;
+ hWndOwner = HWND_DESKTOP;
- hWndDlg = ::WinLoadDlg( hWndParent
- ,hWndParent
+ hWndDlg = ::WinLoadDlg( HWND_DESKTOP
+ ,hWndOwner
,(PFNWP)wxDlgProc
,NULL
,(ULONG)ulDlgTemplate
::WinQueryWindowPos(GetHwnd(), &m_vSwpClient);
} // end of wxTopLevelWindowOS2::AlterChildPos
+void wxTopLevelWindowOS2::UpdateInternalSize(
+ wxWindow* pChild
+, int nHeight
+)
+{
+ pChild->MoveChildren(m_vSwpClient.cy - nHeight);
+ ::WinQueryWindowPos(GetHwnd(), &m_vSwpClient);
+} // end of wxTopLevelWindowOS2::UpdateInternalSize
+
// ----------------------------------------------------------------------------
// wxTopLevelWindowOS2 client size
// ----------------------------------------------------------------------------