Поделиться через


COleControl::DoSuperclassPaint

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

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

Параметры

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

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

Заметки

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.

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::OnDraw