X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da86e1776517d2403a687de08947698f5a608219..abc2a4ccec3d06d4b268d5ac3c97d657721f5cff:/src/xrc/xh_dlg.cpp diff --git a/src/xrc/xh_dlg.cpp b/src/xrc/xh_dlg.cpp index 6108b8c3c3..b377eab61c 100644 --- a/src/xrc/xh_dlg.cpp +++ b/src/xrc/xh_dlg.cpp @@ -19,7 +19,7 @@ #pragma hdrstop #endif -#if wxUSE_XML && wxUSE_XRC +#if wxUSE_XRC #include "wx/xrc/xh_dlg.h" #include "wx/dialog.h" @@ -66,6 +66,8 @@ wxObject *wxDialogXmlHandler::DoCreateResource() dlg->SetClientSize(GetSize()); if (HasParam(wxT("pos"))) dlg->Move(GetPosition()); + if (HasParam(wxT("icon"))) + dlg->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON)); SetupWindow(dlg); @@ -82,4 +84,4 @@ bool wxDialogXmlHandler::CanHandle(wxXmlNode *node) return IsOfClass(node, wxT("wxDialog")); } -#endif // wxUSE_XML && wxUSE_XRC +#endif // wxUSE_XRC