#pragma hdrstop
#endif
-#if wxUSE_XML && wxUSE_XRC
+#if wxUSE_XRC
#include "wx/xrc/xh_dlg.h"
#include "wx/dialog.h"
dlg->SetClientSize(GetSize());
if (HasParam(wxT("pos")))
dlg->Move(GetPosition());
+ if (HasParam(wxT("icon")))
+ dlg->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON));
SetupWindow(dlg);
return IsOfClass(node, wxT("wxDialog"));
}
-#endif // wxUSE_XML && wxUSE_XRC
+#endif // wxUSE_XRC