Microsoft DirectX 9.0


The OnUpdateColorKey method informs the application that the color key has changed so that the application can use the new color key to overlay graphics on the video.


HRESULT OnUpdateColorKey (
  COLORKEY const *pKey,
  DWORD dwColor



[out] Pointer to a COLORKEY structure that contains the key type and a palette index.


[out] Value indicating the 8-bit palette index of the COLORKEY returned in pKey, if the current display mode is 8-bit palettized. Otherwise, it is a value representing the color key in the pixel format of the current display mode.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_INVALIDARG One of the parameters is invalid.

See Also