![]() |
|
#1
|
|||
|
|||
CRichEditView/CEditView Color editDoe's somebody know how i can change collors of a text in the CRichEditView ore the CRichEditView?? (where i don't have a pDC)
|
|
#2
|
|||
|
|||
|
Quote:
Unfortenally no reactions, well after a couple of weeks i foudn my answer somewere els... wich was: GetRichEditCtrl().SetSelectionCharFormat(cfr); crf is the caracter format, wich you define this way: CHARFORMAT cfr; memset(&cfr, 0, sizeof(CHARFORMAT)); cfr.cbSize = sizeof(CHARFORMAT); cfr.dwMask = CFM_COLOR |CFM_FACE | CFM_BOLD; cfr.crTextColor = RGB(255, 0, 0); strcpy(cfr.szFaceName, "Arial"); Just in case some1 else was looking for this 2... |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The