]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_wizrd.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / xrc / xh_wizrd.cpp
index 6efb06635a50f5d16397091b547e1b8ba86d3a87..97dc42b94dd1b58728677b63c2f6009f5b69babb 100644 (file)
@@ -49,6 +49,7 @@ wxObject *wxWizardXmlHandler::DoCreateResource()
                     GetText(wxT("title")),
                     GetBitmap(),
                     GetPosition());
+        SetupWindow(wiz);
 
         wxWizard *old = m_wizard;
         m_wizard = wiz;
@@ -74,7 +75,7 @@ wxObject *wxWizardXmlHandler::DoCreateResource()
         {
             if ( !m_instance )
             {
-                wxLogError(wxT("wxWizardPage is abstract class, must be subclassed"));
+                ReportError("wxWizardPage is abstract class and must be subclassed");
                 return NULL;
             }