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:
Now for the static backgroundCode:case WM_CTLCOLORDLG: {return (BOOL)GetStockObject(WHITE_BRUSH);}
But the static is over the button, I need the opposite, the button over the static...any ideas?Code:case WM_CTLCOLORSTATIC: { if (hwControl == GetDlgItem(hwndDlg,IDC_FRAMEBUTTON)) { SetBkMode(hdc,TRANSPARENT); return (BOOL)GetStockObject(DKGRAY_BRUSH); } return (BOOL)GetStockObject(NULL_BRUSH); }