Got an ODBC VC++ ver 6.0 app. which connects to a MS Acces database. I have a Rich Edit control with text (CString) data. When I'm on a particular record, I click a button, and the text in the Rich Edit turns red...this works fine...but why is it the red text does not get saved to the data base ?? Do I have to change something in the actual Access database setup or in my ODBC CVIew based app? The code I use to turn the code red when I hit the ColorButton is this :
m_RichEdit.SetSel(0,1000);//color will affect 1000 characters in the edit control
cf.cbSize = sizeof(CHARFORMAT2) ;
cf.dwMask = CFM_BOLD|CFM_COLOR;
cf.dwEffects = CFE_BOLD ;
cf.crTextColor = RGB(255,0, 0) ;//set to red
m_RichEdit.SendMessage(EM_SETCHARFORMAT, (WPARAM)SCF_SELECTION, (LPARAM)&cf) ;
Any takers on this one ? THanks!