IBrowserService2::_SetFocus method

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(
  LPTOOLBARITEM ptbi,
  HWND          hwnd,
  LPMSG         lpMsg
);

Parameters

ptbi

Type: LPTOOLBARITEM

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

hwnd

Type: HWND

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

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

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