Compartilhar via


COleControl::DoSuperclassPaint

Redraws an OLE control that has been subclassed from a Windows control.

void DoSuperclassPaint( 
   CDC* pDC, 
   const CRect& rcBounds  
);

Parameters

  • pDC
    A pointer to the device context of the control container.

  • rcBounds
    The area in which the control is to be drawn.

Remarks

Call this function to properly handle the painting of a nonactive OLE control. This function should only be used if the OLE control subclasses a Windows control and should be called in the OnDraw function of your control.

For more information on this function and subclassing a Windows control, see the article ActiveX Controls: Subclassing a Windows Control.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::OnDraw