COLORREF
C / C++ / MFC
4
Posts
4
Posters
0
Views
1
Watching
-
Well .. COLORREF can handle 16 million colors i dont think that there are names for each one of them... What you could do is to have a small array or string resource that you can map to the default colors (white, black,green,yellow,blue....) you know ..the basic ones.
-
Check out this article: http://www.codeproject.com/bitmap/ccolor.asp?target=ccolor[^] I've used this class before and whenever I need a color I just look up its name in the header file for this class. The article also has a display chart of all the colors it has pre-defined. Best of all the class is COLORREF compatible.