GDI (Graphics Device Interface) () Windows. GDI (device context DC), : ( ), , . ( handle DC HDC).
, , ( ) , .
: GetDC(), GetWindowDC(), GetDCEx(). () . CreateDC() CreateCompatibleDC() , ( ) , . ReleaseDC() DeleteDC() .
(, Ellipse(), DrawText() ) (). : (Pen), (Brush) (Font). GDI , : , , .
Bitmap Metafile , . , .
GDI API, CreatePen(), CreateBrush() . , .
. SelectObject(), () ; , .
:
;
;
, ;
.
, , , , .
WM_PAINT , , .
1. .
2. .
3. Pen Brush, . Pen Brush.
4. , , , . , .
5. Polyline.
6. (OWNERDRAW). , .
, (OWNERDRAW), - . , (, , , , ). .
9
:
1) .
2) GDI.