wxIcon(const char* const* data);
wxIcon(const char bits[], int width , int height );
- wxIcon(const wxString& name, int flags = wxICON_DEFAULT_TYPE,
+ wxIcon(const wxString& name, wxBitmapType flags = wxICON_DEFAULT_TYPE,
int desiredWidth = -1, int desiredHeight = -1);
wxIcon(const wxIconLocation& loc)
{
SetType(wxBITMAP_TYPE_ICON_RESOURCE);
};
- virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
- int desiredWidth = -1, int desiredHeight = -1);
-
+ virtual bool LoadFile(wxBitmap *bitmap,
+ const wxString& name,
+ wxBitmapType flags,
+ int desiredWidth = -1,
+ int desiredHeight = -1);
+ // unhide the base class virtual
+ virtual bool LoadFile(wxBitmap *bitmap,
+ const wxString& name,
+ wxBitmapType flags)
+ { return LoadFile(bitmap, name, flags, -1, -1); }
};
#endif
}
wxIcon::wxIcon(
- const wxString& icon_file, int flags,
+ const wxString& icon_file, wxBitmapType flags,
int desiredWidth, int desiredHeight )
{
- LoadFile( icon_file, (wxBitmapType) flags, desiredWidth, desiredHeight );
+ LoadFile( icon_file, flags, desiredWidth, desiredHeight );
}
wxIcon::wxIcon(WXHICON icon, const wxSize& size)
IMPLEMENT_DYNAMIC_CLASS(wxICONResourceHandler, wxBitmapHandler)
bool wxICONResourceHandler::LoadFile(
- wxBitmap *bitmap, const wxString& name, long WXUNUSED(flags),
+ wxBitmap *bitmap, const wxString& name, wxBitmapType WXUNUSED(flags),
int desiredWidth, int desiredHeight )
{
wxIcon icon ;