]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_frame.cpp
don't look for notebooks beyond first top level parent in our hierarchy
[wxWidgets.git] / src / xrc / xh_frame.cpp
index 9d93881f0b8c00ae0c6f9282f44c8dfa8efd0bac..3b924e27d538031827e5e78b0e225ea941bb75b8 100644 (file)
@@ -19,7 +19,7 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_XML && wxUSE_XRC
+#if wxUSE_XRC
 
 #include "wx/xrc/xh_frame.h"
 #include "wx/frame.h"
@@ -71,6 +71,8 @@ wxObject *wxFrameXmlHandler::DoCreateResource()
         frame->SetClientSize(GetSize());
     if (HasParam(wxT("pos")))
         frame->Move(GetPosition());
+    if (HasParam(wxT("icon")))
+        frame->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
 
     SetupWindow(frame);
 
@@ -87,4 +89,4 @@ bool wxFrameXmlHandler::CanHandle(wxXmlNode *node)
     return IsOfClass(node, wxT("wxFrame"));
 }
 
-#endif // wxUSE_XML && wxUSE_XRC
+#endif // wxUSE_XRC