Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reading from File question... Pin
Zac Howland26-Oct-06 4:51
Zac Howland26-Oct-06 4:51 
GeneralRe: Reading from File question... Pin
David Crow26-Oct-06 5:02
David Crow26-Oct-06 5:02 
GeneralRe: Reading from File question... Pin
Zac Howland26-Oct-06 6:04
Zac Howland26-Oct-06 6:04 
QuestionRe: Reading from File question... Pin
David Crow29-May-07 10:12
David Crow29-May-07 10:12 
AnswerRe: Reading from File question... Pin
Zac Howland30-May-07 7:07
Zac Howland30-May-07 7:07 
GeneralRe: Reading from File question... Pin
David Crow30-May-07 7:22
David Crow30-May-07 7:22 
GeneralRe: Reading from File question... Pin
Zac Howland30-May-07 9:13
Zac Howland30-May-07 9:13 
AnswerRe: Reading from File question... Pin
David Crow26-Oct-06 3:59
David Crow26-Oct-06 3:59 
QuestionTime consuming error Pin
Oliver12325-Oct-06 11:19
Oliver12325-Oct-06 11:19 
AnswerRe: Time consuming error Pin
led mike25-Oct-06 11:36
led mike25-Oct-06 11:36 
GeneralRe: Time consuming error Pin
Stephen Hewitt25-Oct-06 15:41
Stephen Hewitt25-Oct-06 15:41 
GeneralRe: Time consuming error Pin
led mike26-Oct-06 5:25
led mike26-Oct-06 5:25 
AnswerRe: Time consuming error Pin
Mark Salsbery25-Oct-06 12:00
Mark Salsbery25-Oct-06 12:00 
GeneralRe: Time consuming error Pin
led mike25-Oct-06 12:02
led mike25-Oct-06 12:02 
GeneralRe: Time consuming error Pin
Mark Salsbery25-Oct-06 12:25
Mark Salsbery25-Oct-06 12:25 
AnswerRe: Time consuming error Pin
Stephen Hewitt25-Oct-06 15:37
Stephen Hewitt25-Oct-06 15:37 
QuestionDialog Application-Adding Color to Display Data Pin
jerry1211a25-Oct-06 9:52
jerry1211a25-Oct-06 9:52 
AnswerRe: Dialog Application-Adding Color to Display Data Pin
Mark Salsbery25-Oct-06 10:40
Mark Salsbery25-Oct-06 10:40 
I think the only control that would allow you to mix colors in the text would be a rich edit
control. You could use read-only rich edit controls.

If that's way overkill for just colored text, you could render the text yourself in response to
the WM_PAINT message using perhaps some/all of these functions:

SelectObject() to select a NULL brush (NULL_BRUSH) into the DC or possibly another font as well
SetTextColor()
SetROP2() to set the foreground mixing mode (to R2_COPYPEN, for example)
SetBkMode() to set the background mixing mode (to TRANSPARENT, for example)
DrawText() to draw the text

Just two possibilities
Mark

AnswerRe: Dialog Application-Adding Color to Display Data Pin
Hamid_RT25-Oct-06 19:29
Hamid_RT25-Oct-06 19:29 
GeneralRe: Dialog Application-Adding Color to Display Data Pin
jerry1211a26-Oct-06 2:36
jerry1211a26-Oct-06 2:36 
GeneralRe: Dialog Application-Adding Color to Display Data Pin
Hamid_RT26-Oct-06 2:52
Hamid_RT26-Oct-06 2:52 
GeneralRe: Dialog Application-Adding Color to Display Data Pin
jerry1211a26-Oct-06 3:01
jerry1211a26-Oct-06 3:01 
GeneralRe: Dialog Application-Adding Color to Display Data Pin
Hamid_RT26-Oct-06 3:06
Hamid_RT26-Oct-06 3:06 
QuestionRe: DrawText example, please Pin
mla15425-Oct-06 9:22
mla15425-Oct-06 9:22 
AnswerRe: DrawText example, please Pin
Jörgen Sigvardsson25-Oct-06 9:43
Jörgen Sigvardsson25-Oct-06 9:43 

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.