. InvalidateRect WM _ PAINT. , , :
InvalidateRect (hwnd, NULL, TRUE);
GetUpdateRect, ValidateRec t.
WM _ PAINT, PAINTSTRUCT, BeginPaint. , .
( )
SelectObject (hdc, hRgn); SelectClipRgn (hdc, hRgn);
.
Windows , ExcludeClipRect ; IntersectClipRect , ; OffsetClipRgn .
, .. . .
. . GetDeviceCaps ().
.
COLORREF SetPixel (hdc, nX, nY, crColor);
BOOL SetPixelV (hdc, nX, nY, crColor);
COLORREF GetPixel (hdc, nX, nY);
() . SetPixelV () ; (COLORREF), (BOOL).
nX, nY (int);
crColor (COLORREF).
, .
(bitmap) , , .
BITMAP, :
LONG bmType , 0;
LONG bmWidth, LONG bmHeight ;
|
|
LONG bmWidthBytes , Windows 2, .. , ;
WORD bmPlanes (), .. , ;
WORD bmBitsPixel ;
LPVOID bmBits , .
. , (foreground), (backgroung).
, HBITMAP. - BITMAP.
HBITMAP CreateBitmap (int nWidth, int nHeight, UINT cPlanes,
UINT cBitsPerPel, const void* lpvBits);
HBITMAP CreateBitmapIndirect (const BITMAP* lpBitmap);
BITMAP , NULL ; :
nWidth, nHeight ;
cPlanes ;
cBitsPerPel ;
lpvBits ;
lpBitmap BITMAP, .
HBITMAP CreateCompatibleBitmap (hdc, int nWidth, int nHeight);
BITMAP ; ( DIB -); NULL; nWidth nHeight .
SetDlBits () GetDlBits (), , . BITMAP SelectObject (), .
:
BOOL BitBlt (HDC hDstDC, int nDstX, int nDstY, int nDstWidth,
int nDstHeight,HDC hSrcDC, int nSrcX, int nSrcY, DWORD dwRop);
BOOL StretchBlt (HDC hDstDC, int nDstX, int nDstY, int nDstWidth,
int nDstHeight, HDC hSrcDC, int nSrcX, int nSrcY, int nSrcWidth,
int nSrcHeight, DWORD dwRop);
BOOL MaskBlt (HDC hDstDC, int nDstX, int nDstY, int nDstWidth,
int nDstHeight, HDC hSrcDC, int nSrcX, int nSrcY,
HBITMAP hbmMask, int nMaskX, int nMaskY, DWORD dwRop);
BOOL PlgBlt (HDC hDstDC, const POINT* lpDstVertices, HDC hSrcDC,
int nSrcX, int nSrcY, HBITMAP hbmMask, int nMaskX, int nMaskY,
DWORD dwRop);
- - ( ). StretchBlt ; MaskBlt ; PlgBlt ; ; :
hSrcDC, hDstDC ;
nSrcX, nSrcY, nDstX, nDstY ;
nSrcWidth, nSrcHeight, nDstWidth, nDstHeight ;
|
|
hbmMask , , , ;
nMaskX, nMaskY ;
lpDstVertices , , -;
dwRop , : SRCCOPY , SRCAND Ȼ, SRCPAINT Ȼ, SRCINVERT Ȼ, SRCERASE Ȼ , NOTSRCCOPY, NOTSRCERASE , , DSTINVERT -, BLACKNESS, WHITENESS - 0 1 . MaskBlt , MAKEROP 4.
, .
, , , , .
, , SetStretchBltMode, GetStretchBltMode.
11.
1. , ( ).
2. , , , .
3. , 100 .
4. , , 200 , , , .
5. , .
6. , .
7. , .
8. , .
9. , .
10. , y = 0,5 x 2 + 4 x 3. -15 5 0,1. , .
1. , . . / . . , . . . : ii, 1995.
2. , . . ++ Builder 6 / . . . .: ̻, 2002.
3. , . . ++ / . . , . . . .: , 1999.
4. , . : / . , . . .: , 1988.
5. , . . : / . . . .: , 1988.
6. : . . 12- . . .2. / . . [ .]. : , 2005.
7. : . . . / . . [ .]. : , 2004.
8. , . . / . . , . . . .: , 1978.
9. , . Borland C++ / . . .: , 1995.
10. , . - / . . .: , 1997.
|
|
11. , . ++ / . , . : , 1993.
12. , . / . . .: , 2001.
13. , . + = / . . .: , 1985.
14. , . . / . . , . . . .: , 2006.
15. , . . . / . . . : , 2001.
16. , . / . // , 1988.
17. , . ++ / . . : , 1996.
18. , . . : O Turbo-C Borland C++: . / . . , . . . : . ., 1992.
19. , . . . : . / . . . : .., 1992.
20. , . / . , . . .: , 1992.
21. , . . / . , . , . . .: , 1985.
22. , . UNIX / . , . . .: , 1992.
23. , . . ++. / . . . .: -, 2001.
24. , . : . 13. / . . .: , 2004.
25. , . . / . . , . . . : .., 1991.
26. / . . [ .]. : , 1996.
27. , . . : . / . . , . . . : , 2000.
28. , . . : . / . . , . . . : , 1996.
29. ++ / . . [ .]. .: , 2000.
30. , . . : . : 2 . / . . . : . . . . 1. 2000, . 2. 2001.
31. , . . /++. / . . . .: , 2004.
32. , . . /++. : / . . , . . . .: , 2002.
33. , . . ++. - : / . . , . . . .: , 2004.
34. , . Windows 95 / . . BHV.: .: , 1997.
35. , . . / . . , . . . .: , 2001.
36. , . . ++ / . . . M.: , 2001.
37. , . - ++ / . . : , 1995.
38. , . . / . . , . . , . . . .: , 1992.
39. /
. . [ .]. .: , 1980.
40. , . . . 12- . / . . . : , 2001.
41. , . . Builder C++: . . 1-2 . .
. .: 2 . / . . . : . . 1. 2004, . 2. 2005.
42. , . ++ / . . .: , 1999.
|
|
43. , . . ++ Builder 5 / . . . .: , 2000.
44. , . ++: . . / . , . . .: ̻, 2000.
45. , . / . . .: , 1991.
46. , . . : / . . , . . . ., 1987.
47. , . . / . , . , . . .: , 1988.
48. , . / . . .: , 1985.
49. , . Visual C++ 6. / . . .: , 1999.
50. , . / . , . . .: ,1986.
51. , . Borland ++ / . . : , 1999.
52. , . . / . . , . . . : .., 1990.