COleControl::OnDraw
Visual Studio 2010
Called by the framework to draw the OLE control in the specified bounding rectangle using the specified device context.
virtual void OnDraw( CDC* pDC, const CRect& rcBounds, const CRect& rcInvalid );
OnDraw is typically called for screen display, passing a screen device context as pDC. The rcBounds parameter identifies the rectangle in the target device context (relative to its current mapping mode). The rcInvalid parameter is the actual rectangle that is invalid. In some cases this will be a smaller area than rcBounds.