X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..34138703c3997ce676a1e713d9ff9eb020640da7:/src/msw/curico.cpp diff --git a/src/msw/curico.cpp b/src/msw/curico.cpp index 7644dead8a..854a6a65ab 100644 --- a/src/msw/curico.cpp +++ b/src/msw/curico.cpp @@ -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));