.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH OleTranslateColor 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBOleTranslateColor\fR (OLEAUT32.421) .SH SYNOPSIS HRESULT OleTranslateColor ( OLE_COLOR \fIclr\fR, HPALETTE \fIhpal\fR, COLORREF* \fIpColorRef\fR ) .SH DESCRIPTION .PP Convert an \fBOLE_COLOR\fR to a \fBCOLORREF\fR. .SH PARAMS \fIclr\fR \fB[In]\fR Color to convert. .PP \fIhpal\fR \fB[In]\fR Handle to a palette for the conversion. .PP \fIpColorRef\fR \fB[Out]\fR Destination for converted color, or \fBNULL\fR to test if the conversion is ok. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. The conversion is ok, and \fIpColorRef\fR contains the converted color if non-NULL. .PP \fBFailure:\fR \fBE_INVALIDARG\fR, if any argument is invalid. .SH FIXME .PP Document the conversion rules. .SH IMPLEMENTATION .PP Declared in \fB"olectl.h"\fR. .PP Implemented in \fB"dlls/oleaut32/oleaut.c"\fR. .PP Debug channel \fB"ole"\fR.