1.cpp
im trying to edit the font color of some text in a edit box (IDC_EDIT12), but the thing is when i compile the program, i get these 2 error msg
error C2039: 'SetBkColor' : is not a member of 'CDFBPDlg'
error C2039: 'SetTextColor' : is not a member of 'CDFBPDlg'
what to do? i have a 1.h file for it, should i do anything in there?
Code:
BOOL CDFBPDlg::OnInitDialog()
{
//...
CDFBPDlg m_stcSTSign;
// TODO: Add extra initialization here
m_stcSTSign.SubclassDlgItem(IDC_EDIT12, this);
// Set the text color
// Tooltip's foreground color
m_stcSTSign.SetTextColor(RGB(0,157,0));
// Set the background color
// Tooltip's background color
m_stcSTSign.SetBkColor(::GetSysColor(COLOR_MENU));
//...
UpdateData(0);
return TRUE;
}
im trying to edit the font color of some text in a edit box (IDC_EDIT12), but the thing is when i compile the program, i get these 2 error msg
error C2039: 'SetBkColor' : is not a member of 'CDFBPDlg'
error C2039: 'SetTextColor' : is not a member of 'CDFBPDlg'
what to do? i have a 1.h file for it, should i do anything in there?