The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.


Header: afxwin.h