![]() |
class GScreenDC : public GSurface { public: |
![]() |
// _Constructor GScreenDC(HBITMAP hBmp, int Sx, int Sy) GScreenDC(HDC hDC, HWND hWnd) GScreenDC(HWND hWnd) |
![]() |
// _Constructor GScreenDC(BView *View) |
![]() |
// _Constructor GScreenDC(os::View *View) |
  |
}; |
Argument | Description |
HBITMAP hBmp | Existing bitmap to draw on. |
int Sx | Width of bitmap. |
int Sy | Height of bitmap. |
Argument | Description |
HDC hDC | Handle of the existing DC (device context). |
HWND hWnd | Handle of the window. |
Use this constructor when you already have a DC that you want to draw on.
Argument | Description |
HWND hWnd | The window handle of the window to paint on. |
This constructor should be used in the WM_PAINT handler.
case WM_PAINT: { GScreenDC DeviceContext(hWnd); // Do painting here... break; }
Argument | Description |
BView *View | The pointer to the view object. |
Use this constructor to draw on a BView object.
Argument | Description |
os::View *View | The view to draw on. |
Use this constructor to draw on an AtheOS view object, usually from within the os::View's Paint function.