diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index c789049ef3..1c3486a3e8 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -1352,6 +1352,7 @@ bool wxBitmap::InitFromHBITMAP(WXHBITMAP bmp, int width, int height, int depth) GetBitmapData()->m_width = width; GetBitmapData()->m_height = height; GetBitmapData()->m_depth = depth; + GetBitmapData()->m_hasAlpha = (depth == 32) && CheckAlpha(bmp); return IsOk(); }