]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_frame.cpp
delete children in ~wxWindow dtor and not in the base class ~wxWindowNative as it...
[wxWidgets.git] / src / xrc / xh_frame.cpp
index 2685be16e06aeee8192317d869a7a5ef6e81fede..3b924e27d538031827e5e78b0e225ea941bb75b8 100644 (file)
@@ -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);