COleControl::GetDC

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.

At a Glance

Header file: Afxctl.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

CDC* GetDC( LPCRECT lprcRect = NULL,
DWORD
dwFlags = OLEDC_PAINTBKGND );

See Also

COleControl::ReleaseDC