int CWorkSpace::GetColorRGB(std::string strColorText, COLORREF& color)
{
char chR[4] = {0}, chG[4] = {0}, chB[4] = {0};
sscanf(strColorText.c_str(), "%[^,],%[^,],%[^,]", chR, chG, chB);
color = RGB(atoi(chR), atoi(chG), atoi(chB));
return 0;
}
int CWorkSpace::GetColorRGB(std::string strColorText, COLORREF& color)
{
char chR[4] = {0}, chG[4] = {0}, chB[4] = {0};
sscanf(strColorText.c_str(), "%[^,],%[^,],%[^,]", chR, chG, chB);
color = RGB(atoi(chR), atoi(chG), atoi(chB));
return 0;
}