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