Поделиться через


COleControl::ExchangeVersion

Serializes or initializes the state of a control's version information.

BOOL ExchangeVersion(
   CPropExchange* pPX,
   DWORD dwVersionDefault,
   BOOL bConvert = TRUE 
);

Параметры

  • pPX
    A pointer to a CPropExchange object. The framework supplies this object to establish the context of the property exchange, including its direction.

  • dwVersionDefault
    The current version number of the control.

  • bConvert
    Indicates whether persistent data should be converted to the latest format when saved, or maintained in the same format that was loaded.

Возвращаемое значение

Nonzero of the function succeeded; 0 otherwise.

Заметки

Typically, this will be the first function called by a control's override of COleControl::DoPropExchange. When loading, this function reads the version number of the persistent data, and sets the version attribute of the CPropExchange object accordingly. When saving, this function writes the version number of the persistent data.

For more information on persistence and versioning, see the article ActiveX Controls: Serializing.

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::DoPropExchange