CPropExchange::ExchangeVersion

Called by the framework to handle persistence of a version number.

virtual BOOL ExchangeVersion(
   DWORD& dwVersionLoaded,
   DWORD dwVersionDefault,
   BOOL bConvert 
);

Parameters

  • dwVersionLoaded
    Reference to a variable where the version number of the persistent data being loaded will be stored.

  • dwVersionDefault
    The current version number of the control.

  • bConvert
    Indicates whether to convert persistent data to the current version or keep it at the same version that was loaded.

Return Value

Nonzero if the function succeeded; 0 otherwise.

Requirements

Header: afxctl.h

See Also

Reference

CPropExchange Class

Hierarchy Chart

COleControl::ExchangeVersion

Other Resources

CPropExchange Members