]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/icon.cpp
patch 816178 and tons of other fixes to owner drawn bitmaps appearance; some code...
[wxWidgets.git] / src / msw / icon.cpp
index 74460dff34f35c1ed7421a7d927676ca4224564d..9064101a533de02749fcbe0c99db24f9b51630f9 100644 (file)
@@ -17,7 +17,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "icon.h"
 #endif
 
@@ -95,7 +95,7 @@ wxIcon::wxIcon(const wxIconLocation& loc)
     }
     //else: 0 is default
 
-    LoadFile(fullname);
+    LoadFile(fullname, wxBITMAP_TYPE_ICO);
 }
 
 wxIcon::~wxIcon()