(Up to GSurface)

GScreenDC

This class is used to draw onto the screen through the operating systems graphics API.
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)
  };

GScreenDC::GScreenDC

(Platform: Win32)
GScreenDC(HBITMAP hBmp, int Sx, int Sy)

Argument Description
HBITMAP hBmp Existing bitmap to draw on.
int Sx Width of bitmap.
int Sy Height of bitmap.


GScreenDC::GScreenDC

(Platform: Win32)
GScreenDC(HDC hDC, HWND hWnd)

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.


GScreenDC::GScreenDC

(Platform: Win32)
GScreenDC(HWND hWnd)

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;
	}

GScreenDC::GScreenDC

(Platform: BeOS)
GScreenDC(BView *View)

Argument Description
BView *View The pointer to the view object.

Use this constructor to draw on a BView object.


GScreenDC::GScreenDC

(Platform: AtheOS)
GScreenDC(os::View *View)

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.


Built: 19/10/2001 5:25:00 PM
© 2001 Matthew Allen
Lgi HomePage