#include "wx/app.h"
#include "wx/icon.h"
#include "wx/bitmap.h"
+ #include "wx/log.h"
#endif
#include "wx/msw/private.h"
{
if ( m_hIcon )
{
+#ifndef __WXMICROWIN__
::DestroyIcon((HICON) m_hIcon);
+#endif
m_hIcon = 0;
}
void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
{
+#ifndef __WXMICROWIN__
#ifdef __WIN32__
wxMask *mask = bmp.GetMask();
if ( !mask )
HICON hicon = ::CreateIconIndirect(&iconInfo);
if ( !hicon )
{
- wxLogLastError("CreateIconIndirect");
+ wxLogLastError(wxT("CreateIconIndirect"));
}
else
{
// wxFAIL_MSG("Bitmap to icon conversion (including use of XPMs for icons) not implemented");
#endif // Win32/16
+#endif
}
void wxIcon::CreateIconFromXpm(const char **data)