I want to change the color of a button in a dialogbox, I have been doing the following but it doesn't work, I stepped through and the cases do get each called, but it has no effect on the buttons.

<code>
case WM_CTLCOLORBTN:
switch((GetWindowLong((HWND)lParam,GWL_ID))){
case IDC_LINE1:
SetBkColor((HDC) wParam,RGB(255,0,0));
SetTextColor((HDC)wParam, RGB(255,255,255));
case IDC_LINE2:
SetBkColor((HDC) wParam,RGB(0,255,0));
SetTextColor((HDC)wParam, RGB(255,255,255));
case IDC_LINE3:
SetBkColor((HDC) wParam,RGB(0,0,255));
SetTextColor((HDC)wParam, RGB(255,255,255));
}
return ((LRESULT) CreateSolidBrush(RGB(0,0,0)));
</code>