// we can have either an icon or a bitmap
bool m_isIcon;
wxGDIImage *m_image;
+
// handle used in last call to STM_SETIMAGE
- HGDIOBJ m_currentHandle;
+ WXHANDLE m_currentHandle;
private:
DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
m_isIcon ? IMAGE_ICON : IMAGE_BITMAP, (LPARAM)handle);
// detect if this is still the handle we passed before or
// if the static-control made a copy of the bitmap!
- if (m_currentHandle != 0 && oldHandle != m_currentHandle)
+ if (m_currentHandle != 0 && oldHandle != (HGDIOBJ) m_currentHandle)
{
// the static control made a copy and we are responsible for deleting it
- DeleteObject(oldHandle);
+ DeleteObject((HGDIOBJ) oldHandle);
}
- m_currentHandle = (HGDIOBJ)handle;
+ m_currentHandle = (WXHANDLE)handle;
#endif // Win32
if ( ImageIsOk() )