if ( !parent && !(GetWindowStyleFlag() & wxDIALOG_NO_PARENT) )
{
parent = wxTheApp->GetTopWindow();
+
+ // but don't use the window which is currently hidden as then the
+ // dialog would be hidden as well
+ if ( parent && !parent->IsShown() )
+ {
+ parent = NULL;
+ }
}
m_hWnd = (WXHWND)::CreateDialog(wxGetInstance(),
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"));