X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..520e470fdd0daef09c77938db642e4583933c90d:/src/msw/pnghand.cpp?ds=sidebyside diff --git a/src/msw/pnghand.cpp b/src/msw/pnghand.cpp index c6fad8a66b..bea92c6138 100644 --- a/src/msw/pnghand.cpp +++ b/src/msw/pnghand.cpp @@ -24,7 +24,16 @@ #include #include #include + +#if wxUSE_IOSTREAMH #include +#else +#include +# ifdef _MSC_VER + using namespace std; +# endif +#endif + #include #include #include @@ -271,7 +280,7 @@ bool wxPNGReader::InstantiateBitmap(wxBitmap *bitmap) HDC dc2 = GetDC(NULL); HBITMAP tmpBitmap = ::CreateCompatibleBitmap(dc2, GetWidth(), GetHeight()); ReleaseDC(NULL, dc2); - HBITMAP oldBitmap = ::SelectObject(dc, tmpBitmap); + HBITMAP oldBitmap = (HBITMAP) ::SelectObject(dc, tmpBitmap); if ( Palette ) { @@ -342,7 +351,7 @@ wxMask *wxPNGReader::CreateMask(void) HBITMAP hBitmap = ::CreateBitmap(GetWidth(), GetHeight(), 1, 1, NULL); HDC dc = ::CreateCompatibleDC(NULL); - HBITMAP oldBitmap = ::SelectObject(dc, hBitmap); + HBITMAP oldBitmap = (HBITMAP) ::SelectObject(dc, hBitmap); int bgIndex = GetBGIndex();