Click here to Skip to main content
16,010,022 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with coloring buttons Pin
Nish Nishant6-Nov-01 8:14
sitebuilderNish Nishant6-Nov-01 8:14 
Generalone Doc two views Pin
6-Nov-01 2:06
suss6-Nov-01 2:06 
GeneralRe: one Doc two views Pin
Rassman6-Nov-01 5:16
Rassman6-Nov-01 5:16 
GeneralSimple Query about Image..... Pin
Debu6-Nov-01 0:53
Debu6-Nov-01 0:53 
GeneralRe: Simple Query about Image..... Pin
Rassman6-Nov-01 5:22
Rassman6-Nov-01 5:22 
GeneralRe: Simple Query about Image..... Pin
Rassman7-Nov-01 0:45
Rassman7-Nov-01 0:45 
GeneralRich Edit Coloring Pin
Xavier Shay6-Nov-01 0:26
Xavier Shay6-Nov-01 0:26 
GeneralRe: Rich Edit Coloring Pin
6-Nov-01 6:58
suss6-Nov-01 6:58 
I'm not sure how much better a solution this would be but here goes, you could try searching for the '\g' and place everything previous to it into the control, then change the colour and then place the rest of the text. I think this would be more efficient because it would then only require the rich edit control to call your EditStreamCallback function twice in the case of your sample string (as opposed to the 20 odd calls it that would be required if you did it character by character).

Just a thought...

Ben Burnett

"It's all absolutely devastatingly true -- except the bits that are lies"
- Douglas Adams
Generalsimple question about "static" Pin
Maer7276-Nov-01 0:12
Maer7276-Nov-01 0:12 
GeneralRe: simple question about "static" Pin
Xavier Shay6-Nov-01 0:31
Xavier Shay6-Nov-01 0:31 
GeneralRe: simple question about "static" Pin
Maer7276-Nov-01 18:54
Maer7276-Nov-01 18:54 
GeneralRe: simple question about "static" Pin
Xavier Shay11-Nov-01 0:25
Xavier Shay11-Nov-01 0:25 
GeneralRe: simple question about "static" Pin
Maer72711-Nov-01 2:56
Maer72711-Nov-01 2:56 
GeneralRe: simple question about "static" Pin
Nish Nishant6-Nov-01 0:34
sitebuilderNish Nishant6-Nov-01 0:34 
GeneralRe: simple question about "static" Pin
Maer7276-Nov-01 18:08
Maer7276-Nov-01 18:08 
GeneralRe: simple question about "static" Pin
6-Nov-01 1:17
suss6-Nov-01 1:17 
GeneralRe: simple question about "static" Pin
Sprudling6-Nov-01 2:55
Sprudling6-Nov-01 2:55 
GeneralRe: simple question about "static" Pin
Maer7276-Nov-01 18:44
Maer7276-Nov-01 18:44 
GeneralRe: simple question about "static" Pin
Malcolm McMahon6-Nov-01 3:55
Malcolm McMahon6-Nov-01 3:55 
GeneralRe: simple question about "static" Pin
Maer7276-Nov-01 18:50
Maer7276-Nov-01 18:50 
GeneralRe: simple question about "static" Pin
Maer7276-Nov-01 18:11
Maer7276-Nov-01 18:11 
GeneralCursor Size Pin
jerry0davis6-Nov-01 0:02
jerry0davis6-Nov-01 0:02 
GeneralRe: Cursor Size Pin
Nish Nishant6-Nov-01 8:20
sitebuilderNish Nishant6-Nov-01 8:20 
QuestionEXE as a DLL ?? Pin
Jon Hulatt5-Nov-01 23:54
Jon Hulatt5-Nov-01 23:54 
AnswerRe: EXE as a DLL ?? Pin
Michael P Butler6-Nov-01 0:13
Michael P Butler6-Nov-01 0:13 

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.