Я хочу добавить розовый цвет в качестве цветовой кнопки моей цветовой кнопки MFC вместо черного.
void TabOne::OnBnClickedColor()
{
// TODO: Add your control notification handler code here
CMFCColorButton* thisbutton = (CMFCColorButton*)GetDlgItem(Color);
COLORREF ref = RGB(255, 0, 255);
thisbutton->SetColor(ref);
thisbutton->UpdateWindow();
}
он не меняет цвет.