]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_unkwn.cpp
Updates to MIME-types and wxFileDialog code for better
[wxWidgets.git] / contrib / src / xrc / xh_unkwn.cpp
index 4ff17331255d181695cea5bc0578729e75407e07..cad645b68b10634d0332f95642f8602ffc75c978 100644 (file)
@@ -90,6 +90,9 @@ wxUnknownWidgetXmlHandler::wxUnknownWidgetXmlHandler()
 
 wxObject *wxUnknownWidgetXmlHandler::DoCreateResource()
 {
+    wxASSERT_MSG( m_instance == NULL,
+                  _T("'unknown' controls can't be subclassed, use wxXmlResource::AttachUnknownControl") );
+
     wxPanel *panel =
         new wxUnknownControlContainer(m_parentAsWindow,
                                       GetName(), -1,