VS2015 Dialog MFC
I have several CMFCEditBrowseCtrl implemented on my dialog with custom behavior for the browse button:
Is it possible to conditionally set the background of the edit part of the control to red at run time? And when required set the background of the edit back to the default?
Thank you.
Update I see that the control is derived from CEdit, so I am going to give this a try:
The answer from above link is in the right direction, however it is not implemented correctly.
CtlColor
should return a brush handle. It also needs to set text background color withCDC::SetBkColor
usage: