part of wxWizard loading from WXR patch I forgot to commit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-11-06 16:34:36 +00:00
parent 4eb1fe9da6
commit 66fa5a8c1f

View File

@ -3145,6 +3145,9 @@ bool wxWindowBase::LoadFromResource(wxWindow *parent, const wxString& resourceNa
int height = resource->GetHeight();
wxString name = resource->GetName();
// this is used for loading wxWizard pages from WXR
if ( parent != this )
{
if (IsKindOf(CLASSINFO(wxDialog)))
{
wxDialog *dialogBox = (wxDialog *)this;
@ -3167,6 +3170,7 @@ bool wxWindowBase::LoadFromResource(wxWindow *parent, const wxString& resourceNa
if (!((wxWindow *)this)->Create(parent, -1, wxPoint(x, y), wxSize(width, height), theWindowStyle, name))
return FALSE;
}
}
if ((resource->GetResourceStyle() & wxRESOURCE_USE_DEFAULTS) != 0)
{