X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc579b3c5808934aaa8e53eab85060247993223..8da1f9a99ee0ff9493cc7845ec13100cdeac431c:/src/xrc/xh_dlg.cpp diff --git a/src/xrc/xh_dlg.cpp b/src/xrc/xh_dlg.cpp index 8b56d45f2b..b377eab61c 100644 --- a/src/xrc/xh_dlg.cpp +++ b/src/xrc/xh_dlg.cpp @@ -19,6 +19,8 @@ #pragma hdrstop #endif +#if wxUSE_XRC + #include "wx/xrc/xh_dlg.h" #include "wx/dialog.h" #include "wx/log.h" @@ -64,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); @@ -79,3 +83,5 @@ bool wxDialogXmlHandler::CanHandle(wxXmlNode *node) { return IsOfClass(node, wxT("wxDialog")); } + +#endif // wxUSE_XRC