Tema: on WM_PAINT seniena
Autorius: Vytis Vygintas
Data: 2010-04-21 18:13:57
case WM_PAINT: {

HWND hPic4 = GetDlgItem(hDlg, IDC_STATIC4);

hdc = BeginPaint(hPic4, &ps);

GetClientRect(hPic4, &clientRect);

bgRgn = CreateRectRgnIndirect(&clientRect);

hBrush = CreateSolidBrush(RGB(200,000,100*so));

FillRgn(hdc, bgRgn, hBrush);

EndPaint(hPic4, &ps);

.....

kas cia negerai, nes keiciantis so, spalva neikeicia?

(gerai nudazo kvadrata tik pirma karta)