Please check the following url.
http://www.codeguru.com/cpp/controls/buttonctrl/article.php/c5157[
^]
you can follow the tutorial and when it comes for different buttons, within the DrawItem() function check the control id and selct different colors accordingly. see below
.......
switch( lpDrawItemStruct->CtlID )
{
case IDC_BUTTON1:
......
dc.FillSolidRect(rt, RGB(0, 0, 255));
......
case IDC_BUTTON2:
......
dc.FillSolidRect(rt, RGB(0, 255, 0));
.....
}
.....