change edit font color
-
if u r using a DC to output u'r text, then u can change u'r font color by setting DC's SetTextColor property:omg: Ashok Singh
-
Read Mike Dunn's FAQ. It will answer 50% of all commonly asked questions. Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
-
Use
CDC::SetTextColor
inCWnd::OnCtlColor
. I think there are some good articles explaining this on CP. Cheers /moliate//this is how i set the size and the ==== bold //setting edit box yfont size LogFont.lfHeight = 15; LogFont.lfWeight = FW_BOLD; newFont.CreateFontIndirect(&LogFont); GetDlgItem(IDC_EDIT1)->SetFont(&newFont); CEdit* smpEdit = (CEdit*)GetDlgItem(IDC_EDIT1); smpEdit->SetWindowText(afileName);