Επεξεργασία

Κοινή χρήση μέσω


IExplorerBrowser::SetOptions method (shobjidl_core.h)

Sets the current browser options.

Syntax

HRESULT SetOptions(
  [in] EXPLORER_BROWSER_OPTIONS dwFlag
);

Parameters

[in] dwFlag

Type: EXPLORER_BROWSER_OPTIONS

One or more EXPLORER_BROWSER_OPTIONS flags to be set.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This action overrides any previous options.

Frames are disabled by default. To enable frames and get the default set of panes, set the EBO_SHOWFRAMES flag using the SetOptions method. The default panes, listed as IExplorerPaneVisibility constants, are these:

  • EP_NavPane
  • EP_Commands
  • EP_Commands_Organize
  • EP_Commands_View
  • EP_DetailsPane
  • EP_PreviewPane
  • EP_QueryPane
  • EP_AdvQueryPane
  • EP_StatusBar
  • EP_Ribbon
See IExplorerPaneVisibility::GetPaneState for more information.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)