A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



OleTranslateColor

Converts an OLE_COLOR type to a COLORREF.

VB4-32,5,6
Private Declare Function OleTranslateColor Lib "olepro32.dll" (ByVal OLE_COLOR As Long, ByVal hPalette As Long, pccolorref As Long) As Long

Operating Systems Supported
Requires Windows NT 4.0 or later; Requires Windows 95 or later

Library
Olepro32

Parameter Information
- clr
[in] The OLE color to be converted into a COLORREF.

- hpal
[in] Palette used as a basis for the conversion.

- pcolorref
[out] Pointer to the caller's variable that receives the converted COLORREF result. This can be NULL, indicating that the caller wants only to verify that a converted color exists.

Return Values
This function supports the standard return values E_INVALIDARG and E_UNEXPECTED, as well as the following: S_OK

The color was translated successfully.

Last update: 07 April 2006