class WXDLLEXPORT wxBMPFileHandler : public wxBitmapHandler
{
public:
- wxBMPFileHandler() : wxBitmapHandler(_T("Windows bitmap file"), _T("bmp"),
+ wxBMPFileHandler() : wxBitmapHandler(wxT("Windows bitmap file"), wxT("bmp"),
wxBITMAP_TYPE_BMP)
{
}
class WXDLLEXPORT wxBMPResourceHandler: public wxBitmapHandler
{
public:
- wxBMPResourceHandler() : wxBitmapHandler(_T("Windows bitmap resource"),
+ wxBMPResourceHandler() : wxBitmapHandler(wxT("Windows bitmap resource"),
wxEmptyString,
wxBITMAP_TYPE_BMP_RESOURCE)
{
)
{
wxIcon* pIcon = wxDynamicCast(pImage, wxIcon);
- wxCHECK_MSG(pIcon, false, _T("wxIconHandler only works with icons"));
+ wxCHECK_MSG(pIcon, false, wxT("wxIconHandler only works with icons"));
return LoadIcon( pIcon
,rName
class WXDLLEXPORT wxICOFileHandler : public wxIconHandler
{
public:
- wxICOFileHandler() : wxIconHandler(_T("ICO icon file"),
- _T("ico"),
+ wxICOFileHandler() : wxIconHandler(wxT("ICO icon file"),
+ wxT("ico"),
wxBITMAP_TYPE_ICO)
{
}
class WXDLLEXPORT wxICOResourceHandler: public wxIconHandler
{
public:
- wxICOResourceHandler() : wxIconHandler(_T("ICO resource"),
- _T("ico"),
+ wxICOResourceHandler() : wxIconHandler(wxT("ICO resource"),
+ wxT("ico"),
wxBITMAP_TYPE_ICO_RESOURCE)
{
}
return pHandler;
pNode = pNode->GetNext();
}
- return((wxGDIImageHandler*)NULL);
+ return(NULL);
}
wxGDIImageHandler* wxGDIImage::FindHandler(
}
pNode = pNode->GetNext();
}
- return((wxGDIImageHandler*)NULL);
+ return(NULL);
}
wxGDIImageHandler* wxGDIImage::FindHandler(
return pHandler;
pNode = pNode->GetNext();
}
- return((wxGDIImageHandler*)NULL);
+ return(NULL);
}
void wxGDIImage::CleanUpHandlers()
wxBitmapRefData* pData = pBitmap->GetBitmapData();
- if ( pBitmap->Ok() )
+ if ( pBitmap->IsOk() )
{
BITMAPINFOHEADER vBmph;
pData->m_nHeight = vBmph.cy;
pData->m_nDepth = vBmph.cBitCount;
}
- return(pBitmap->Ok());
+ return(pBitmap->IsOk());
} // end of wxBMPResourceHandler::LoadFile
bool wxBMPFileHandler::LoadFile( wxBitmap* pBitmap,
pIcon->SetHICON((WXHICON)hIcon);
- return pIcon->Ok();
+ return pIcon->IsOk();
} // end of wxICOResourceHandler::LoadIcon