The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
RGBToHtml
Converts a COLORREF value to the HTML text corresponding to that color value.
bool inline RGBToHtml(
COLORREF color,
LPTSTR pbOut,
long nBuffer
);
- color
An RGB color value.
- pbOut
Caller-allocated buffer to receive the text for the HTML color value. The buffer must have space for at least 8 characters including space for the null terminator).
- nBuffer
The size in bytes of the buffer (including space for the null terminator).
Returns TRUE on success, FALSE on failure.
An HTML color value is a pound sign followed by a 6-digit hexadecimal value using 2 digits for each of the red, green, and blue components of the color (for example, #FFFFFF is white).
Requirements
Header: atlutil.h
Show: