COleControl::SerializeExtent

void SerializeExtent( CArchive& ar );

Parameters

ar

A CArchive object to serialize to or from.

Remarks

Call this function to serialize or initialize the state of the display space allotted to the control.

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.

Example

void CMyCtrl::Serialize(CArchive& ar)
{
    DWORD dwVersion =
        SerializeVersion(ar, MAKELONG(_wVerMinor, _wVerMajor));
    SerializeExtent(ar);
    SerializeStockProps(ar);

    if (ar.IsLoading())
    {
        // load custom properties here
    }
    else
    {
        // save custom properties here
    }
}

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::SerializeStockProps, COleControl::SerializeVersion