COleControl::OnResetState
调用由框架,则应将控件的属性设置为其默认值。
virtual void OnResetState( );
备注
默认实现调用 DoPropExchange,通过将属性设置为其默认值的 CPropExchange 对象。
控件编写器可以插入OLE控件的初始化代码在可重写的方法中。此功能称为,在 IPersistStream::Load 或 IPersistStorage::Load 失败时,或者 IPersistStreamInit::InitNew 或 IPersistStorage::InitNew,调用,而无需先调用 IPersistStream::Load 或 IPersistStorage::Load。
要求
Header: afxctl.h