wxMask *mask = bitmap->GetMask();
if ( mask )
{
// the fg ROP is applied for the pixels of the mask bitmap which are 1
// (for a wxMask this means that this is a non transparent pixel), the
// bg ROP is applied for all the others
wxMask *mask = bitmap->GetMask();
if ( mask )
{
// the fg ROP is applied for the pixels of the mask bitmap which are 1
// (for a wxMask this means that this is a non transparent pixel), the
// bg ROP is applied for all the others
ok = ::MaskBlt(
hDC, x1, y1, wBmp, hBmp, // dst
memDC, 0, 0, // src
(HBITMAP)mask->GetMaskBitmap(), 0, 0, // mask
MAKEROP4(SRCCOPY, // fg ROP
ok = ::MaskBlt(
hDC, x1, y1, wBmp, hBmp, // dst
memDC, 0, 0, // src
(HBITMAP)mask->GetMaskBitmap(), 0, 0, // mask
MAKEROP4(SRCCOPY, // fg ROP
{
ok = ::BitBlt(hDC, x1, y1, wBmp, hBmp, // dst
memDC, 0, 0, // src
{
ok = ::BitBlt(hDC, x1, y1, wBmp, hBmp, // dst
memDC, 0, 0, // src