-
- wxIcon(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_XPM,
- int desiredWidth = -1, int desiredHeight = -1);
- ~wxIcon();
-
- bool LoadFile(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_XPM,
- int desiredWidth = -1, int desiredHeight = -1);
+#endif
+
+ wxIcon(const wxString& name, wxBitmapType type = wxICON_DEFAULT_TYPE,
+ int desiredWidth = -1, int desiredHeight = -1)
+ {
+ LoadFile(name, type, desiredWidth, desiredHeight);
+ }
+
+ wxIcon(const wxIconLocation& loc)
+ {
+ LoadFile(loc.GetFileName(), wxBITMAP_TYPE_ANY);
+ }
+
+ virtual ~wxIcon();
+
+ bool LoadFile(const wxString& name, wxBitmapType type,
+ int desiredWidth, int desiredHeight);
+
+ // unhide the base class version
+ virtual bool LoadFile(const wxString& name,
+ wxBitmapType flags = wxICON_DEFAULT_TYPE)
+ { return LoadFile(name, flags); }