SECWorkspaceManagerEx::OpenWorkspace

Opens a new active workspace, closing old workspace if present.

Defined in: SWSMGREX.CPP

Syntax

OpenWorkspace(BOOL bLastActiveWorkspace,BOOL bSuppressErrorDlg)

OpenWorkspace(CString strWorkspaceName,BOOL bSuppressErrorDlg)

Return Value

True if workspace was successfully opened.

Parameters

bLastActiveWorkspace

If True, attempt to load last active workspace. If False, prompt for workspace name.

bSuppressErrorDlg

If true, do not display error dialogs. Return quietly on error.

strWorkspaceName

Name of workspace to load for open operation.

Comments

This function will load and set a new workspace state. If there is a currently active workspace, it will be closed in favor of this operation. If the overload with no parameters is used, the name of the last active workspace is used for the open operation.