|
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 |
· 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. |
This function supports the standard return values E_INVALIDARG and E_UNEXPECTED, as well as the following: S_OK
The color was translated successfully. |
|
|
|