COleControl::DoSuperclassPaint

重绘从Windows control子类的一个OLE控件。

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

参数

  • pDC
    对控件容器的设备上下文的指针。

  • rcBounds
    控件要绘制的区域。

备注

适当地缩放此功能来处理非活动OLE控件绘制。在控件中 OnDraw 函数应只使用此功能,如果OLE控件子类Windows控件,并应调用。

有关此功能和subclassing Windows控件的更多信息,请参见文章 ActiveX控件:Subclassing Windows控件

要求

Header: afxctl.h

请参见

参考

COleControl选件类

层次结构图

COleControl::OnDraw