IExplorerBrowser::SetEmptyText method (shobjidl_core.h)

Sets the default empty text.

Syntax

HRESULT SetEmptyText(
  [in] LPCWSTR pszEmptyText
);

Parameters

[in] pszEmptyText

Type: LPCWSTR

A pointer to a constant, null-terminated, Unicode string that contains the empty text.

Return value

Type: HRESULT

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

Remarks

The text set is displayed when the Explorer browser view is empty.

This method applies the empty text string to the current view and sets the default empty text string that is used when navigating to another location.

If this method is not called, the empty text will default to the text provided by the folder that has been navigated to.

Requirements

   
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)