hi all,
i'm having trouble with flicker and an owner draw button. in the debugger i see the WM_PAINT msg
comes before the WM_DRAWITEM. as the hdc is different in these 2 msgs i end up writing to the
button area twice causing the flicker. can someone clue me in as to what i need to do please?
case WM_DRAWITEM: // 1st is WM_PAINT does DrawHello2 then WM_DRAWITEM
DrawControl ( hwnd, (LPDRAWITEMSTRUCT) lParam );
thanks.
i added
case WM_CTLCOLORBTN:
SetBkMode( (HDC)wParam, TRANSPARENT);
return (LRESULT) GetStockObject(NULL_BRUSH);
and
changed
CreateWindow
to
CreateWindowEx ( WS_EX_TRANSPARENT,
and it appears to have stopped the slight flicker.
i'll now read up on your WS_CLIPCHILDREN to do it the correct way.
thanks