I'm having trouble to put two buttons over a static control, because I need a special color for that static control...
right now all my dialog background is white, with:
Code:
case WM_CTLCOLORDLG:
{return (BOOL)GetStockObject(WHITE_BRUSH);}
Now for the static background
Code:
case WM_CTLCOLORSTATIC:
{
if (hwControl == GetDlgItem(hwndDlg,IDC_FRAMEBUTTON))
{
SetBkMode(hdc,TRANSPARENT);
return (BOOL)GetStockObject(DKGRAY_BRUSH);
}
return (BOOL)GetStockObject(NULL_BRUSH);
}
But the static is over the button, I need the opposite, the button over the static...any ideas?