|
|
case WM_PAINT:
hdc = BeginPaint (hWnd, &ps);
StretchBlt(
hdc,
0,
0,
bmap.bmWidth,
bmap.bmHeight,
hDCMem,
0,
0,
bmap.bmWidth,
bmap.bmHeight,
SRCCOPY
);
EndPaint( hWnd, &ps );
break;
| |
|
|
case WM_ERASEBKGND:
hOld = SelectObject( (HDC)wParam, h2000 );
GetClientRect( hWnd, &rt );
if ( rt.right > bmap.bmWidth ) {
PatBlt( (HDC)wParam,
bmap.bmWidth, 0,
rt.right - bmap.bmWidth + 1,
rt.bottom + 1,
PATCOPY );
}
if ( rt.bottom > bmap.bmHeight ) {
PatBlt( (HDC)wParam,
0, bmap.bmHeight,
rt.right + 1,
rt.bottom + 1,
PATCOPY );
}
SelectObject( (HDC)wParam, hOld );
return true;
| |
|
|
|
|
case WM_PAINT:
hdc = BeginPaint (hWnd, &ps);
StretchBlt(
hdc,
0,
0,
bmap.bmWidth * 0.5,
bmap.bmHeight * 0.5,
hDCMem,
0,
0,
bmap.bmWidth,
bmap.bmHeight,
SRCCOPY
);
EndPaint( hWnd, &ps );
break;
| |
|
|
|