added (MSW/GTK) and documented new frame and dialog flags

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-10-11 13:16:37 +00:00
parent 2fb40b2cd2
commit b3daa5a322
8 changed files with 69 additions and 36 deletions

View File

@@ -632,7 +632,9 @@ int wxDialog::ShowModal()
return GetReturnCode();
}
if ( !GetParent() )
// use the apps top level window as parent if none given unless explicitly
// forbidden
if ( !GetParent() && !(GetWindowStyleFlag() & wxDIALOG_NO_PARENT) )
{
wxWindow *parent = wxTheApp->GetTopWindow();
if ( parent && parent != this )