IOleControlNavigation2AdviseSink::NavigateOutControl (Windows CE 5.0)
This method notifies the browser when the user tries to navigate outside the bounds of the control.
HRESULT STDMETHODCALLTYPE NavigateOutControl(RECTcurrentRect,NVFOCUS_DIRECTIONdirection);
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 Values
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
OS Versions: Windows CE .NET 4.1 and later.
Header: Mshtml.h, Mshtmhst.idl.
Link Library: Mshtml.dll.
See Also
IOleControlNavigation2AdviseSink
Send Feedback on this topic to the authors