SetContractDelegateWindow function (shobjidl_core.h)

Associates an app window other than the primary foreground window with an app's contracts. Use this function if you are a developer writing a Windows Store app in native C++.

Syntax

void SetContractDelegateWindow(
  [in]           HWND hwndSource,
  [in, optional] HWND hwndDelegate
);

Parameters

[in] hwndSource

Type: HWND

The handle of the app window normally associated with its contracts.

[in, optional] hwndDelegate

Type: HWND

The handle of another of the app's windows that will act as the contract delegate for hwndSource. Set this value to NULL to remove the delegate connection.

Return value

None

Remarks

This is an inline function, with the source code included in the header file. It is not included in a .lib or .dll file.

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)

See also

GetContractDelegateWindow