INewWindowManager interface (shobjidl_core.h)

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.

Inheritance

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

Methods

The INewWindowManager interface has these methods.

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

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)

See also

CoInternetSetFeatureEnabled