sizeReal.SetDefaults(GetDefaultSize());
}
+ // notice that we should append this window to wxTopLevelWindows list
+ // before calling CreateBase() as it behaves differently for TLW and
+ // non-TLW windows
+ wxTopLevelWindows.Append(this);
+
bool ret = CreateBase(parent, id, pos, sizeReal, style, name);
if ( !ret )
return false;
- wxTopLevelWindows.Append(this);
-
if ( parent )
parent->AddChild(this);
m_iconized = nShowCmd == SW_MINIMIZE;
}
+void wxTopLevelWindowMSW::ShowWithoutActivating()
+{
+ if ( !wxWindowBase::Show(true) )
+ return;
+
+ DoShowWindow(SW_SHOWNA);
+}
+
bool wxTopLevelWindowMSW::Show(bool show)
{
// don't use wxWindow version as we want to call DoShowWindow() ourselves