|
TranslateColor Converts an OLE_COLOR type to an RGB color. VB4-32,5,6 Declare Function TranslateColor Lib "olepro32.dll" Alias "OleTranslateColor" (ByVal clr As OLE_COLOR, ByVal palet As Long, col 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. |
|
|
|