CDC::operator HDC
TOC
Collapse the table of content
Expand the table of content

CDC::operator HDC

 

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


operator HDC( ) const;

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

You can use the handle to call Windows APIs directly.

Requirements

Header: afxwin.h

Show:
© 2016 Microsoft