]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/curico.cpp
somehow log target wasn't being created automatically anymore. Restored.
[wxWidgets.git] / src / msw / curico.cpp
index 7644dead8a920341c4d7e640a3d64f59c44ae0fa..854a6a65ab1c8996dc8e476d296177605289c06e 100644 (file)
@@ -772,7 +772,7 @@ HCURSOR MakeCursorFromBitmap(HINSTANCE hInst, HBITMAP hBitmap, POINT *pPoint)
   hAndBmp = CreateCompatibleBitmap(hDCMono, 32, 32);
   hXorBmp = CreateCompatibleBitmap(hDCMono, 32, 32);
 
-  hBmpOld = SelectObject(hDCColor, hBitmap);
+  hBmpOld = (HBITMAP) SelectObject(hDCColor, hBitmap);
   SelectObject(hDCMono, hAndBmp);
   SetBkColor(hDCColor, RGB(191, 191, 191));
 
@@ -849,7 +849,7 @@ HICON MakeIconFromBitmap(HINSTANCE hInst, HBITMAP hBitmap)
   hAndBmp = CreateCompatibleBitmap(hDCMono, 32, 32);
   hXorBmp = CreateCompatibleBitmap(hDCMono, 32, 32);
 
-  hBmpOld = SelectObject(hDCColor, hBitmap);
+  hBmpOld = (HBITMAP) SelectObject(hDCColor, hBitmap);
   SelectObject(hDCMono, hAndBmp);
   SetBkColor(hDCColor, RGB(191, 191, 191));