Partager via


IOleControlNavigation2::NavigateInControl (Windows CE 5.0)

Send Feedback

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

HRESULT STDMETHODCALLTYPE  NavigateInControl(  RECTlastRect,  NVFOCUS_DIRECTIONdirection);

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 Values

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 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

OS Versions: Windows CE .NET 4.1 and later.
Header: Mshtml.h, Mshtmhst.idl.
Link Library: Mshtml.dll.

See Also

IOleControlNavigation2:IUnknown

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.