void CNSChartCtrl::PrepareColors(DefaultColors defaultColor) { // AddSolidBrush(0x0000CC00); AddSolidBrush(0x00FF0000); AddSolidBrush(0x00CCCC00); AddSolidBrush(0x000000FF); AddSolidBrush(0x000000CC); AddSolidBrush(0x0000FF00); AddSolidBrush(0x00FF00FF); }
void CNSChartCtrl::PrepareColors(DefaultColors defaultColor) { switch(defaultColor){ case EMPY: ResetColors(); break; case GrayScale: ResetColors(); AddSolidBrush(0x00666666); AddSolidBrush(0x00DDDDDD); AddSolidBrush(0x00888888); AddSolidBrush(0x00444444); AddSolidBrush(0x00CCCCCC); AddSolidBrush(0x00AAAAAA); AddSolidBrush(0x00000000); break; case SimpleColors: ResetColors(); AddSolidBrush(0x0000CC00); AddSolidBrush(0x0000FFFF); AddSolidBrush(0x000000FF); AddSolidBrush(0x00FF0000); AddSolidBrush(0x00FF00FF); AddSolidBrush(0x00FFFF00); AddSolidBrush(0x000000CC); AddSolidBrush(0x0000FF00); AddSolidBrush(0x00FFFFCC); AddSolidBrush(0x00CC00CC); AddSolidBrush(0x00CCFF00); AddSolidBrush(0x00CCFFFF); AddSolidBrush(0x00CC000F); AddSolidBrush(0x0000CCCC); AddSolidBrush(0x00C0F0F0); AddSolidBrush(0x00CCCC00); AddSolidBrush(0x0000CC00); AddSolidBrush(0x0000FFFF); AddSolidBrush(0x000000FF); AddSolidBrush(0x00FF0000); AddSolidBrush(0x00FF00FF); AddSolidBrush(0x00FFFF00); AddSolidBrush(0x000000CC); AddSolidBrush(0x0000FF00); AddSolidBrush(0x00FFFFCC); AddSolidBrush(0x00CC00CC); AddSolidBrush(0x00CCFF00); AddSolidBrush(0x00CCFFFF); AddSolidBrush(0x00CC000F); AddSolidBrush(0x0000CCCC); AddSolidBrush(0x00C0F0F0); AddSolidBrush(0x00CCCC00); AddSolidBrush(0x00CCCC00); AddSolidBrush(0x0000CC00); AddSolidBrush(0x0000FFFF); AddSolidBrush(0x000000FF); AddSolidBrush(0x00FF0000); AddSolidBrush(0x00FF00FF); AddSolidBrush(0x00FFFF00); AddSolidBrush(0x000000CC); AddSolidBrush(0x0000FF00); AddSolidBrush(0x00FFFFCC); AddSolidBrush(0x00CC00CC); AddSolidBrush(0x00CCFF00); AddSolidBrush(0x00CCFFFF); AddSolidBrush(0x00CC000F); AddSolidBrush(0x0000CCCC); AddSolidBrush(0x00C0F0F0); AddSolidBrush(0x00CCCC00); break; }; }