IBrowserService2::_SetFocus method (shdeprecated.h)

Deprecated. Sets the focus on a toolbar or on the browser's view window. Called when translating accelerators through TranslateAcceleratorSB or when IBrowserService2::v_MayGetNextToolbarFocus fails.

Syntax

HRESULT _SetFocus(
  [in] LPTOOLBARITEM ptbi,
  [in] HWND          hwnd,
  [in] LPMSG         lpMsg
);

Parameters

[in] ptbi

Type: LPTOOLBARITEM

A pointer to a TOOLBARITEM structure that specifies a browser toolbar item.

[in] hwnd

Type: HWND

The handle of the browser window in which the focus shift is taking place.

[in] lpMsg

Type: LPMSG

A pointer to a MSG that contains a keystroke message that indicates an accelerator.

Return value

Type: HRESULT

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

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shdeprecated.h