X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cc5041d03515c7f749638a9af9cca46c0918dde..7d1f4c3ff01b09105c07d5e176a14428c834975e:/src/generic/wizard.cpp?ds=inline diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 334c5859a5..eed6e10755 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -86,13 +86,15 @@ wxWizardPage::wxWizardPage(wxWizard *parent, { if ( resource != NULL ) { +#if wxUSE_RESOURCES if ( !LoadFromResource(this, resource) ) { wxFAIL_MSG(wxT("wxWizardPage LoadFromResource failed!!!!")); } +#endif // wxUSE_RESOURCES } - m_PageBitmap = bitmap; + m_bitmap = bitmap; // initially the page is hidden, it's shown only when it becomes current Hide(); @@ -131,6 +133,7 @@ bool wxWizard::Create(wxWindow *parent, { m_posWizard = pos; m_bitmap = bitmap ; + // just create the dialog itself here, the controls will be created in // DoCreateControls() called later when we know our final size m_page = (wxWizardPage *)NULL;