CDC::Attach
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

CDC::Attach 

Use this member function to attach an hDC to the CDC object.


BOOL Attach(
   HDC hDC 
);

Parameters

hDC

A Windows device context.

Nonzero if the function is successful; otherwise 0.

The hDC is stored in both m_hDC, the output device context, and in m_hAttribDC, the attribute device context.

Show:
© 2016 Microsoft