#pragma hdrstop
#endif
-// this is Win32 only code
+#if wxUSE_MIMETYPE
+
+// Doesn't compile in WIN16 mode
#ifndef __WIN16__
#ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/registry.h"
- #include "windows.h"
+ #include "wx/msw/private.h"
#endif // OS
#include "wx/msw/mimetype.h"
default:
icon->SetHICON((WXHICON)hIcon);
+ wxSize size = wxGetHiconSize(hIcon);
+ icon->SetSize(size);
if ( iconIndex )
*iconIndex = nIndex;
if ( iconFile )
#endif
// __WIN16__
+
+#endif // wxUSE_MIMETYPE