This method provides a means for a windowless object to get a screen (or compatible) device context from its container. The COleControl::ReleaseDC method must be called to release the context after painting.
Header file: | Afxctl.h |
Platforms: | H/PC 2.0, H/PC Pro |
Windows CE versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
CDC* GetDC( LPCRECT lprcRect = NULL,
DWORD dwFlags = OLEDC_PAINTBKGND );