COleControl::SerializeExtent
Serializes or initializes the state of the display space allotted to the control.
void SerializeExtent(
CArchive& ar
);
Параметры
- ar
A CArchive object to serialize to or from.
Заметки
You can improve a control's binary persistence performance by using SerializeExtent, SerializeStockProps, and SerializeVersion to override COleControl::Serialize. See the example below. For further information on optimizing initialization, see ActiveX Controls: Optimization.
Пример
void CMyAxCtrl::Serialize(CArchive& ar)
{
SerializeVersion(ar, MAKELONG(_wVerMinor, _wVerMajor));
SerializeExtent(ar);
SerializeStockProps(ar);
if (ar.IsStoring())
{ // storing code
}
else
{ // loading code
}
}
Требования
Header: afxctl.h