다음을 통해 공유


IOleControlNavigation2AdviseSink::NavigateOutControl (Windows Embedded CE 6.0)

1/6/2010

This method notifies the browser when the user tries to navigate outside the bounds of the control.

Syntax

HRESULT STDMETHODCALLTYPE  NavigateOutControl( 
  RECT currentRect, 
  NVFOCUS_DIRECTION direction
);

Parameters

  • currentRect
    [in] Current FocusRect within the control.
  • direction
    [in] Direction used to exit the control, as enumerated in NVFOCUS_DIRECTION. Note that FOCUS_NONE has no effect, because it is not valid in this context.

Return Value

S_OK indicates success.

S_FALSE indicates that the focus must stay inside the control.

Remarks

The browser uses the currentRect parameter to determine where to move the focus outside of the control. If there is nowhere to navigate outside of the control, then S_FALSE is returned and the focus must stay within the control.

Requirements

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

See Also

Reference

IOleControlNavigation2AdviseSink