]> git.saurik.com Git - wxWidgets.git/commitdiff
#undef LoadIcon() too
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 Jan 2003 22:11:24 +0000 (22:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 Jan 2003 22:11:24 +0000 (22:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/winundef.h

index aee51d4b515d6f3a281bbbbee6b637336c5c793a..d9eb7c339d872885342860e483004e790586ca03 100644 (file)
    }
 #endif
 
+// LoadIcon
+#ifdef LoadIcon
+    #undef LoadIcon
+    inline HINSTANCE LoadIcon(HINSTANCE hInstance, LPCTSTR lpIconName)
+    {
+        #ifdef _UNICODE
+            return LoadIconW(hInstance, lpIconName);
+        #else // ANSI
+            return LoadIconA(hInstance, lpIconName);
+        #endif // Unicode/ANSI
+    }
+#endif // LoadIcon
+
+
 // LoadLibrary
 
 #ifdef LoadLibrary