- if ( !bmpMask.Ok() )
- {
- // create a non transparent mask - apparently, this is needed under
- // Win9x (it doesn't behave correctly if it's passed 0 mask)
- bmpMask.Create(bitmap.GetWidth(), bitmap.GetHeight(), 1);
-
- wxMemoryDC dcMem;
- dcMem.SelectObject(bmpMask);
- dcMem.Clear();
- dcMem.SelectObject(wxNullBitmap);
+ wxMemoryDC dcMem;
+ dcMem.SelectObject(*bmpMask);
+ dcMem.Clear();
+ dcMem.SelectObject(wxNullBitmap);
+
+ hbmpMask = GetHbitmapOf(*bmpMask);
+ }