共用方式為


CDC::ReleaseOutputDC

Call this member function to set the m_hDC member to NULL.

virtual void ReleaseOutputDC( );

Remarks

This member function cannot be called when the output device context is attached to the CDC object. Use the Detach member function to detach the output device context.

Requirements

Header: afxwin.h

See Also

Concepts

CDC Class

CDC Members

Hierarchy Chart

CDC::SetAttribDC

CDC::SetOutputDC

CDC::ReleaseAttribDC

CDC::m_hDC