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

Parameters

ptbi [in]

Type: LPTOOLBARITEM

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

hwnd [in]

Type: HWND

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

lpMsg [in]

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]

Product

Internet Explorer 5.0

Header

Shdeprecated.h

IDL

Shdeprecated.idl

 

 

Show: