COleControl::OnGetViewRect

This member function is called by the framework in response to a container's IViewObjectEx::GetRect request. The object's size is converted by OnGetViewRect into a rectangle starting at a specific position (the default is the upper left corner of the display). Override this function if your control uses two-pass drawing, and its opaque and transparent parts have different dimensions.

Syntax

virtual BOOL OnGetViewRect( DWORD dwAspect, LPRECTL pRect );

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::OnGetViewExtent