This function called by the framework in response to a container's IViewObjectEx::GetExtent request. Override this function if your control uses two-pass drawing, and its opaque and transparent parts have different dimensions.
virtual BOOL OnGetViewExtent( DWORD dwDrawAspect, LONG lindex, DVTARGETDEVICE* ptd, LPSIZEL lpsizel );
Header file: | Afxctl.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
COleControl Overview, COleControl Member Functions, Control Classes, DVTARGETDEVICE, COleControl::OnGetViewRect