Expand Minimize

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

Parameters

hwndSource [in]

Type: HWND

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

hwndDelegate [in, optional]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Shobjidl.h

See also

GetContractDelegateWindow

 

 

Community Additions

ADD
Show:
© 2014 Microsoft