#ifndef WX_PRECOMP
#include "wx/string.h"
+ #include "wx/app.h"
#endif // WX_PRECOMP
#include "wx/os2/private.h"
-#include "wx/app.h"
#include "wx/os2/gdiimage.h"
#include "wx/listimpl.cpp"
// creating and saving icons is not supported
virtual bool Create( wxGDIImage* WXUNUSED(pImage)
- ,void* WXUNUSED(pData)
+ ,const void* WXUNUSED(pData)
,long WXUNUSED(lFlags)
,int WXUNUSED(nWidth)
,int WXUNUSED(nHeight)
return true;
}
-WXHANDLE wxGDIImage::GetResourceHandle()
+WXHANDLE wxGDIImage::GetResourceHandle() const
{
return GetHandle();
}
{
wxGDIImageHandler* pHandler = pNode->GetData();
- if ( (pHandler->GetExtension() = rExtension) &&
+ if ( (pHandler->GetExtension() == rExtension) &&
(lType == -1 || pHandler->GetType() == lType) )
{
return pHandler;
{
HPOINTER hIcon;
- hIcon = ::WinLoadFileIcon( (PSZ)rName.c_str()
+ hIcon = ::WinLoadFileIcon( rName.c_str()
,TRUE // load for private use
);