Partager via


CDC::operator HDC

Use this operator to retrieve the device context handle of the CDC object.

operator HDC( ) const;

Return Value

If successful, the handle of the device context object; otherwise, NULL.

Remarks

You can use the handle to call Windows APIs directly.

Requirements

Header: afxwin.h

See Also

Concepts

CDC Class

CDC Members

Hierarchy Chart