blind fix for the initial dialog position

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-10-21 00:08:03 +00:00
parent 08c4a8a9dd
commit f04a0744b0

View File

@@ -265,6 +265,13 @@ bool wxTopLevelWindowMSW::CreateDialog(const wxChar *dlgTemplate,
h = 100;
}
if ( x == CW_USEDEFAULT )
{
// well, where should we put it? maybe centre it on screen?
x =
y = 0;
}
if ( !::MoveWindow(GetHwnd(), x, y, w, h, FALSE) )
{
wxLogLastError(wxT("MoveWindow"));