1.OdCmColor转COLORREFcode
OdCmColor odaColor; COLORREF refColor = RGB(odaColor.red(),odaColor.green(),odaColor.blue());
2. COLORREF转OdCmColor编译
COLORREF refColor OdCmColor odaColor; odaColor.setRGB(GetRValue(refColor),GetGValue(refColor),GetBValue(refColor));
若是GetBValue编译不过,可改成GetBValue((WORD)refColor)class