Click to See Complete Forum and Search --> : Change Edit box color?


April 23rd, 1999, 01:36 PM
Can you change the background color of an edit box? How would it be done?

yash
April 23rd, 1999, 04:48 PM
Hi,
Both the background n text color can be changed ! some code is there in the code section of this site. U can use that else let me know n I can mail U those files.
Yash.

June 30th, 1999, 12:41 PM
Try using WM_CTL_COLOR method which you have to write for the dialog.Suppose the name of the Edit control is IDC_EDIT1 In that function give the following code:
(pWnd->GetDlgCtrlID()==IDC_EDIT1 ) then Create Brush and do manipulation