CMemDC::GetDC
Returns a device context.
CDC& GetDC();
Return Value
A reference to a device context that you can use for drawing operations. The constructor, CMemDC::CMemDC, initializes this device context.
Call CMemDC::IsMemDC to determine whether the device context is a memory device context or a screen device context.
Requirements
Header: afxglobals.h