I’m a beginner with Visual Studio and I’m trying to make a class that would enable me to put Colored Buttons in MFC dialogs and apps (colored texts and backgrounds).
I googled up some ColorButton classes, but they are all pretty old and don’t work with Visual Studio 2005..
Can anyone please help me with some code or useful links, especially with the DrawItem, get and set color functions?
are you just trying to change the background & text color of command buttons? if so, use somthing like:
//change background color
button1.BackColor = Color.Firebrick;
//change text color
button1.ForeColor = Color.ForestGreen;
this would probably do for individual buttons, but i’m going for a class/control that can actually create the buttons by drawing them or construct them from the standard command buttons