sorry, but in these case, i wan't avoid the WM_PAINT
Originally Posted by oogabooga
i can share the Region way, but i need ask: it's a persistente way?
when i use an image, with a diferent backcolor, the control backcolor still be the old or it's the new one?
HRGN GetControlRegion(HWND hwnd,color clrColor)
HRGN hRgn = CreateRectRgn(0,0,0,0);
for (int x = 0; x < w; x++)
for (int y=0; y<h; y++)
HRGN hRgnTemp = CreateRectRgn(x, y, x, y+1);
CombineRgn(hRgn, hRgn, hRgnTemp, RGN_OR);
anotherthing: i read something about InvaliteWindow() but seems not working or i'm not using the right message