ICommDlgBrowser::OnDefaultCommand method (shobjidl_core.h)

Called when a user double-clicks in the view or presses the ENTER key.

Syntax

HRESULT OnDefaultCommand(
  IShellView *ppshv
);

Parameters

ppshv

Type: IShellView*

A pointer to the view's IShellView interface.

Return value

Type: HRESULT

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

Remarks

The browser should return S_OK if it has processed the action or S_FALSE to let the view perform the default action.

Note to Calling Applications

This method allows the default command to be handled by the common dialog box instead of the view.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shlobj.h)
DLL Shell32.dll (version 4.0 or later)

See also

ICommDlgBrowser