IProtectFocus interface

Provides a method that queries for permission to grab the focus.

Members

The IProtectFocus interface inherits from the IUnknown interface. IProtectFocus also has these types of members:

Methods

The IProtectFocus interface has these methods.

MethodDescription
AllowFocusChange

Queries for permission to grab the focus when loading the page or when a script attempts to focus an element.

 

Remarks

IProtectFocus was introduced in Windows Internet Explorer 7.

Hosts of MSHTML and the Web Browser control should respond to a IServiceProvider::QueryService for SID_SProtectFocus.

Implement this interface to prevent web pages hosted in MSHTML or the Web Browser control from stealing focus from other parts of the user interface, for example when a user is entering data into an edit field in the host application.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Docobj.h

IDL

Docobj.idl

 

 

Show: