How can i change color of a specific word in a sentence
-
Hello, I am writing an application in which user can type sentences.I need to change colors some keywords in that sentence into blue. How can i accomplish this task in VC++. Thanks in advance:-D, John.
You don't give us a lot of useful informations ! What kind of application are you doing ? Console, Win32 ? With or without MFC ? And where is this text written ? In a control or what ?
-
You don't give us a lot of useful informations ! What kind of application are you doing ? Console, Win32 ? With or without MFC ? And where is this text written ? In a control or what ?
-
Thanks for the fastest reply. I am developing a SDI application using MFC and the text will be written in the SDI's views . I am currently not using any kind of special controls. Once again,Thanks. John.
emmatty wrote: I am developing a SDI application using MFC and the text will be written in the SDI's views Easiest way to Get above would be use CRichEditView instead of CView!. And Cedric -I am back in race :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
Thanks for the fastest reply. I am developing a SDI application using MFC and the text will be written in the SDI's views . I am currently not using any kind of special controls. Once again,Thanks. John.
Is CDC::SetTextColor of any help ?
-
Is CDC::SetTextColor of any help ?
Long time no see Bro:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
Long time no see Bro:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
Yep :-). You were in hollidays ? ;)
-
Yep :-). You were in hollidays ? ;)
cedric moonen wrote: You were in hollidays ? Yeap, celebrating holiday in hospital since last thursday due to intestine infection :). Now All ok!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
cedric moonen wrote: You were in hollidays ? Yeap, celebrating holiday in hospital since last thursday due to intestine infection :). Now All ok!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
Ouch.... Not so funny holidays X|