This method 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 method if your control uses two-pass drawing, and its opaque and transparent parts have different dimensions.
Header file: | Afxctl.h |
Platforms: | H/PC 2.0, H/PC Pro |
Windows CE versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
virtual BOOL OnGetViewRect( DWORD dwAspect, LPRECTL pRect );