Condividi tramite


CClientDC Class

Takes care of calling the Windows functions GetDC at construction time and ReleaseDC at destruction time.

class CClientDC : public CDC

Members

Public Constructors

Name

Description

CClientDC::CClientDC

Constructs a CClientDC object connected to the CWnd.

Protected Data Members

Name

Description

CClientDC::m_hWnd

The HWND of the window for which this CClientDC is valid.

Remarks

This means that the device context associated with a CClientDC object is the client area of a window.

For more information on CClientDC, see Device Contexts.

Inheritance Hierarchy

CObject

CDC

CClientDC

Requirements

Header: afxwin.h

See Also

Reference

CDC Class

Hierarchy Chart

CDC Class

Concepts

MFC Sample MDI