Finish basic dialog support and some scrolling fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -269,6 +269,18 @@ bool wxTopLevelWindowOS2::CreateDialog(
|
||||
nX = (vSizeDpy.x - nWidth) / 2;
|
||||
nY = (vSizeDpy.y - nHeight) / 2;
|
||||
}
|
||||
m_backgroundColour.Set(wxString("LIGHT GREY"));
|
||||
|
||||
LONG lColor = (LONG)m_backgroundColour.GetPixel();
|
||||
|
||||
if (!::WinSetPresParam( m_hWnd
|
||||
,PP_BACKGROUNDCOLOR
|
||||
,sizeof(LONG)
|
||||
,(PVOID)&lColor
|
||||
))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
::WinSetWindowPos( GetHwnd()
|
||||
,HWND_TOP
|
||||
,nX
|
||||
@@ -277,6 +289,10 @@ bool wxTopLevelWindowOS2::CreateDialog(
|
||||
,nHeight
|
||||
,SWP_MOVE | SWP_SIZE | SWP_ZORDER | SWP_SHOW
|
||||
);
|
||||
//
|
||||
// Set the m_hFrame to m_hWnd for Dialogs
|
||||
//
|
||||
m_hFrame = m_hWnd;
|
||||
SubclassWin(m_hWnd);
|
||||
return TRUE;
|
||||
} // end of wxTopLevelWindowOS2::CreateDialog
|
||||
|
Reference in New Issue
Block a user