Tema: Re: on WM_PAINT seniena
Autorius: VyvIT
Data: 2010-04-21 18:37:28
Tik speju :)

Ar nera kazkokios f-jos, kaip UpdateRegion / Refresh / pan. ?

"Vytis Vygintas" <vytvyt@pingvinai.lt> wrote in message 
news:hqn4nl$lb7$1@trimpas.omnitel.net...
> 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)
>
>
>