OleTranslateColor(3w)

OleTranslateColor3w

Usage

HRESULT OleTranslateColor
(
OLE_COLOR clr,
HPALETTE hpal,
COLORREF* pColorRef
)

Overview

Convert an OLE_COLOR to a COLORREF.

Params

clr [In] Color to convert.

hpal [In] Handle to a palette for the conversion.

pColorRef [Out] Destination for converted color, or NULL to test if the conversion is ok.

Returns

Success: S_OK. The conversion is ok, and pColorRef contains the converted color if non-NULL.

Failure: E_INVALIDARG, if any argument is invalid.

Fixme

Document the conversion rules.

Implementation

Declared in "olectl.h".

Implemented in "dlls/oleaut32/oleaut.c".

Debug channel "ole".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.