次の方法で共有


IOleControlNavigation2::NavigateInControl (Windows Embedded CE 6.0)

1/6/2010

The browser calls this method to inform the control that the focus is being positioned within the control.

Syntax

HRESULT STDMETHODCALLTYPE  NavigateInControl(
  RECT lastRect,
  NVFOCUS_DIRECTION direction
);

Parameters

  • lastRect
    [in] Last rectangle to have the focus before entering the control.
  • direction
    [in] Direction used to enter the control, as defined in the enumerated type NVFOCUS_DIRECTION.

Return Value

S_OK indicates success.

S_FALSE indicates that the focus cannot be passed to the control and must stay in the browser.

Remarks

The browser calls this method when the navigation control is responsible for navigation. The input parameters allow for the control to determine the appropriate navigation rectangle, within the control, to move the focus to.

The navigation control should call OnFocusRectChange to tell the browser which rectangle has received the focus. The browser then scrolls the rectangle into view.

Requirements

Header mshtmhst.idl, mshtml.h
Library mshtml.dll
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

IOleControlNavigation2