Call this member function to provide a means for a windowless object to get a screen (or compatible) device context from its container. The COleControl::ReleaseDC member function must be called to release the context after painting.
CDC* GetDC( LPCRECT lprcRect = NULL, DWORD dwFlags = OLEDC_PAINTBKGND );
Header file: | Afxctl.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
COleControl Overview, COleControl Member Functions, Control Classes, COleControl::ReleaseDC