共用方式為


CDockState::GetVersion

Call this function to retrieve the version number of the stored bar state.

DWORD GetVersion( );

Return Value

1 if the stored bar information is older than current bar state; 2 if the stored bar information is the same as the current bar state.

Remarks

Version support enables a revised bar to add new persistent properties and still be able to detect and load the persistent state created by an earlier version of the bar.

Requirements

Header: afxadv.h

See Also

Concepts

CDockState Class

CDockState Members

Hierarchy Chart

CDockState::LoadState

CDockState::SaveState

CDockState::Clear

CFrameWnd::GetDockState

CFrameWnd::SetDockState