MFC
Expand Minimize
This topic has not yet been rated - Rate this topic

COleControl::OnDraw

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 
);
pDC

The device context in which the drawing occurs.

rcBounds

The rectangular area of the control, including the border.

rcInvalid

The rectangular area of the control that is invalid.

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.

Header: afxctl.h

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.