// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "xh_dlg.h"
#endif
#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