-
- wxIcon(const wxString& name, long flags = wxBITMAP_TYPE_XPM,
- int desiredWidth = -1, int desiredHeight = -1);
- ~wxIcon();
-
- bool LoadFile(const wxString& name, long flags = wxBITMAP_TYPE_XPM,
- int desiredWidth = -1, int desiredHeight = -1);
+#endif
+
+ wxIcon(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_XPM,
+ 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 = -1);
+
+ // unhide base class LoadFile()
+ virtual bool LoadFile(const wxString& name,
+ wxBitmapType type = wxBITMAP_TYPE_XPM)
+ {
+ return LoadFile(name, type, -1, -1);
+ }