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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user