}
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)
wxGDIRefData *wxIcon::CloneGDIRefData(const wxGDIRefData *data) const
{
- return new wxIconRefData(*wx_static_cast(const wxIconRefData *, data));
+ return new wxIconRefData(*static_cast<const wxIconRefData *>(data));
}
WXHICON wxIcon::GetHICON() const
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 ;