COleControl::GetDC

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.

Syntax

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

At a Glance

Header file: Afxctl.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

COleControl Overview, COleControl Member Functions, Control Classes, COleControl::ReleaseDC