convert OCOLOR to RGB
int okutil_convert_ocolor_to_RGB(OCOLOR oColor)
RGB value
void okutil_convert_ocolor_to_RGB_ex1() { DWORD dwRGB = okutil_convert_ocolor_to_RGB(SYSCOLOR_BLUE); int clrR = GetRValue(dwRGB), clrG = GetGValue(dwRGB), clrB = GetBValue(dwRGB); printf("blue R=%d G=%d B=%d\n", clrR, clrG, clrB); dwRGB = okutil_convert_ocolor_to_RGB(SYSCOLOR_RED); clrR = GetRValue(dwRGB), clrG = GetGValue(dwRGB), clrB = GetBValue(dwRGB); printf("red R=%d G=%d B=%d\n", clrR, clrG, clrB); }
okutil_convert_RGB_to_ocolor
origin.h