GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-Jul-2004, 07:13
JeroenGN JeroenGN is offline
New Member
 
Join Date: Jul 2004
Posts: 4
JeroenGN is on a distinguished road
Question

CRichEditView/CEditView Color edit


Doe'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  
Old 27-Jul-2004, 17:18
JeroenGN JeroenGN is offline
New Member
 
Join Date: Jul 2004
Posts: 4
JeroenGN is on a distinguished road
Lightbulb

Quote:
Originally Posted by JeroenGN
Doe's somebody know how i can change collors of a text in the CRichEditView ore the CRichEditView?? (where i don't have a pDC)

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 GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:11.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.