Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get SMTP server name Pin
YaronNir6-Jul-06 3:06
YaronNir6-Jul-06 3:06 
QuestionRe: Get SMTP server name Pin
David Crow6-Jul-06 4:39
David Crow6-Jul-06 4:39 
AnswerRe: Get SMTP server name Pin
YaronNir6-Jul-06 4:45
YaronNir6-Jul-06 4:45 
GeneralRe: Get SMTP server name Pin
David Crow6-Jul-06 6:40
David Crow6-Jul-06 6:40 
QuestionRich Edit control Pin
Manjunath S5-Jul-06 4:55
Manjunath S5-Jul-06 4:55 
AnswerRe: Rich Edit control [modified] Pin
Viorel.5-Jul-06 4:58
Viorel.5-Jul-06 4:58 
QuestionRe: Rich Edit control Pin
Manjunath S5-Jul-06 5:11
Manjunath S5-Jul-06 5:11 
AnswerRe: Rich Edit control Pin
Viorel.5-Jul-06 5:22
Viorel.5-Jul-06 5:22 
You should use SetSelectionCharFormat as was suggested by DavidCrow. Note that before this you have to specify the range where the colour must be applied. For instance, if you want to change the entire text, try this:

CHARFORMAT cf;
cf.dwMask = CFM_COLOR;
cf.crTextColor = RGB(120, 250, 123);
m_Richer.SetSel(0, -1);
m_Richer.SetSelectionCharFormat(&cf);

QuestionRe: Rich Edit control Pin
David Crow5-Jul-06 5:02
David Crow5-Jul-06 5:02 
AnswerRe: Rich Edit control Pin
earl5-Jul-06 5:09
earl5-Jul-06 5:09 
QuestionControl Event Handler Pin
Daniel Kanev5-Jul-06 4:50
Daniel Kanev5-Jul-06 4:50 
AnswerRe: Control Event Handler Pin
earl5-Jul-06 4:54
earl5-Jul-06 4:54 
GeneralRe: Control Event Handler Pin
Daniel Kanev5-Jul-06 5:12
Daniel Kanev5-Jul-06 5:12 
GeneralRe: Control Event Handler Pin
earl5-Jul-06 5:30
earl5-Jul-06 5:30 
GeneralRe: Control Event Handler Pin
Justin Tay5-Jul-06 5:45
Justin Tay5-Jul-06 5:45 
Questionusing a win32 code in program! Pin
farshad.f5-Jul-06 4:45
farshad.f5-Jul-06 4:45 
AnswerRe: using a win32 code in program! Pin
Zac Howland5-Jul-06 4:51
Zac Howland5-Jul-06 4:51 
AnswerRe: using a win32 code in program! Pin
Sarath C5-Jul-06 4:55
Sarath C5-Jul-06 4:55 
QuestionHow to AddString to child dialog Pin
Max++5-Jul-06 4:26
Max++5-Jul-06 4:26 
AnswerRe: How to AddString to child dialog Pin
Sarath C5-Jul-06 4:46
Sarath C5-Jul-06 4:46 
QuestionThread ..Serial communication..COM DLL Pin
RockyJames5-Jul-06 3:57
RockyJames5-Jul-06 3:57 
AnswerRe: Thread ..Serial communication..COM DLL Pin
earl5-Jul-06 4:22
earl5-Jul-06 4:22 
Question[Message Deleted] Pin
RockyJames5-Jul-06 3:48
RockyJames5-Jul-06 3:48 
AnswerRe: Thread Pin
Sarath C5-Jul-06 3:52
Sarath C5-Jul-06 3:52 
GeneralRe: Thread Pin
RockyJames5-Jul-06 4:08
RockyJames5-Jul-06 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.