IInitializeWithWindow interface (shobjidl_core.h)
Exposes a method through which a client can provide an owner window to a Windows Runtime (WinRT) object used in a desktop application.
For info and code examples about this interface, see Display WinRT UI objects that depend on CoreWindow. In addition to the types listed in that topic, Shell data object is also associated with this API.
Inheritance
The IInitializeWithWindow interface inherits from the IUnknown interface. IInitializeWithWindow also has these types of members:
Methods
The IInitializeWithWindow interface has these methods.
IInitializeWithWindow::Initialize Specifies an owner window to be used by a Windows Runtime object that is used in a desktop app. |
Remarks
Implement this interface if your object needs to be provided with an owner window, generally to display UI. Most third-party applications will not need to implement this interface.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |