Dela via


CFrameWnd::SetDockState

Call this member function to apply state information stored in a CDockState object to the frame window's control bars.

void SetDockState(
   const CDockState& state 
);

Parameters

  • state
    Apply the stored state to the frame window's control bars.

Remarks

To restore a previous state of the control bars, you can load the stored state with CDockState::LoadState or Serialize, then use SetDockState to apply it to the frame window's control bars. The previous state is stored in the CDockState object with GetDockState

Requirements

Header: afxwin.h

See Also

Reference

CFrameWnd Class

Hierarchy Chart

CFrameWnd::GetDockState

CDockState Class

CDockState::LoadState

CObject::Serialize

Other Resources

CFrameWnd Members