CreateBrushIndirect: Creates a brush with a specified style, color, and pattern • CreateDIBPatternBrushPt: Creates a brush with the pattern from a DIB • CreateHatchBrush: Creates a brush with a hatch pattern and color • CreatePatternBrush: Creates a brush with a bitmap pattern • CreateSolidBrush: Creates a brush with a solid color HDC WM_PAINT • HDC BeginPaint( HWND hwnd, // | Lập trình C trên Windows Ví dụ và Bài tập T4 Nguyễn Đức Hoàng Hạ Khoa CNTT - Trường ĐHKHTN Email ndhha@ 1 Graphics Device Interface GDI Output 2 HDC WM_PAINT HDC BeginPaint HWND hwnd input LPPAINTSTRUCT IpPaint output BOOL EndPaint HWND h Wnd PAINTSTRUCT lpPaint Không phải trong WM_PAINT HDC GetDC HWND hWnd int ReleaseDC HWND hWnd HDC hDC handle to DC Chọn các đối tượng vẽ vào trong DC HGDIOBJ SelectObject HDC hdc HGDIOBJ hgdiobj