INewWindowManager interface

Exposes a method that determines whether a window that is launched by another window should be displayed or blocked, allowing control of pop-up windows.

Members

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

Methods

The INewWindowManager interface has these methods.

MethodDescription
EvaluateNewWindow

Accepts data about a new window that is attempting to display and determines whether that window should be allowed to open based on the user's preferences.

 

Remarks

When to Implement

Implement INewWindowManager when your application hosts a WebBrowser control and you want to include pop-up management functionality.

When you implement INewWindowManager, you can override some or all of the Windows Internet Explorer pop-up blocking logic. To use the default Internet Explorer pop-up blocking logic, implement INewWindowManager::EvaluateNewWindow to return E_FAIL. This instructs the WebBrowser control to use the default Internet Explorer implementation. Alternately, the application hosting the WebBrowser control can call CoInternetSetFeatureEnabled with the FEATURE_WEBOC_POPUPMANAGEMENT flag for the same result.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll

See also

CoInternetSetFeatureEnabled

 

 

Show: