]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dibutils.cpp
BC++/16-bit support now working, but without resource system
[wxWidgets.git] / src / msw / dibutils.cpp
index 30dca59100e27fabd4bfb20563b0ebe401873072..b337129663d0e4368bfdcab3abd682e1a51fb8df 100644 (file)
@@ -173,9 +173,13 @@ PDIB DibOpenFile(LPSTR szFile)
                  HRSRC h;
 
           // TODO: Unicode version
+#ifdef __WIN16__
+                 h = FindResource(GetCurrentInstance(), szFile, RT_BITMAP);
+#else
                  h = FindResourceA(GetCurrentInstance(), szFile, RT_BITMAP);
+#endif
 
-#if defined(WIN32) || defined(_WIN32)
+#if defined(__WIN32__)
                  //!!! can we call GlobalFree() on this? is it the right format.
                  //!!! can we write to this resource?
                  if (h)