OleTranslateColor (OLEAUT32.421)
HRESULT OleTranslateColor ( OLE_COLOR clr, HPALETTE hpal, COLORREF* pColorRef )
Convert an OLE_COLOR to a COLORREF.
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. |
Success: S_OK. The conversion is ok, and pColorRef contains the converted color if non-NULL.
Failure: E_INVALIDARG, if any argument is invalid.
Document the conversion rules.
Declared in "include/olectl.h". gitlab.winehq.org/wine/wine/blob/master/include/olectl.h
Implemented in "dlls/oleaut32/oleaut.c". gitlab.winehq.org/wine/wine/blob/master/dlls/oleaut32/oleaut.c
Debug channel "ole".
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.