SetContractDelegateWindow function

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(
  HWND hwndSource,
  HWND hwndDelegate
);

Parameters

hwndSource

Type: HWND

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

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

This function does not return a value.

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

   
Windows version Windows 8 [desktop apps only] Windows Server 2012 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)

See Also

GetContractDelegateWindow