Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.