调用此方法调用容器重绘控件或通知注册的建议接收器控件的视图已更改。
HRESULT FireViewChange( );
返回值
一个标准HRESULT值。
备注
如果控件处于活动状态(控件选件类数据成员 CComControlBase::m_bInPlaceActive 是 TRUE),通知容器要重新绘制整个控件。如果控件处于非活动状态,通知注册的控件的建议控件的视图更改的接收器(通过控件选件类数据成员 CComControlBase::m_spAdviseSink)。
示例
STDMETHODIMP CMyControl::put_Shape(int newVal)
{
// store newVal in m_nShape user-defined member
m_nShape = newVal;
// notify container to redraw control
FireViewChange();
return S_OK;
}
要求
Header: atlctl.h