1 - the child control is transparent:
case WM_ERASEBKGND:
case WM_CTLCOLORBTN:
case WM_CTLCOLORSTATIC:
{
return (LRESULT)GetStockObject(NULL_BRUSH);
}
break;
2 - on paint i can't draw a filled rectangle or will not be transparent;
3 - the parent window have the WS_CLIPCHILDREN style;
4 - for redraw the child control i do(for animation):
RECT d;
GetClientRect(hwnd,&d);
RedrawWindow(hwnd,&d,nullptr,RDW_UPDATENOW | RDW_INVALIDATE);
- if the child control isn't transparent, the flicker is out and the child control is drawed normaly, if i draw the filled rectangle;
- if the child control is transparent, the flicker is out.. but the child control isn't drawed correctly(the image is showed 1 above another) :(
(see the image problem)
how can i redraw, correctly, the child control using the WS_CLIPCHILDREN style?