We have a requirement to change the color of pushbutton/control. I have controls defined in resource file. We have tried multiple ways 1)Using CMFCButton Object I got defination ambiguity errors 2) Using CBUtton CDC* pdcWindow1 = m_Button.GetWindowDC(); CRect rect1; GetClientRect(&rect1); pdcWindow1->FillSolidRect(&rect1, (RGB(0, 0, 255)));
No effect on Button color no error as well.
Inputs which i have got so far : we have used ATLcontrols and to color Button we need MFC Functions, here ATL and MFC libs can't coexist they are causing ambiguity errors as both have same functional definitions.
Is it even possible to color ATL controls without MFC functions.? only solution is --https://jeffpar.github.io/kbarchive/kb/173/Q173974/??