How to draw overlay bitmap on the RichEdit

I have a rich edit control with text on it. I would like to put a simple bitmap on the top of control so I can see both text and bitmap, I also be able to continue type chars in the RichEdit control as well.

How I can do that? Sample welcomes.
qckingAsked:
Who is Participating?
 
PIGConnect With a Mentor Commented:
>I have a rich edit control with text on it. I would like to put a >simple bitmap on the top of control so I can see both text and >bitmap, I also be able to continue type chars in the RichEdit >control as well.
So. If You want use RichEdit and say in him bitmap and text You must use ActiveX for Your bitmap and place it into RichEdit. If You want use diferen color for Yur tet in RishEdit use CRichEditCtrl::SetSelectionCharFormat and set that what You want. If ou have prolem see "Using CRichEditCtrl" in MSDN.
So is it OK?
0
 
basantCommented:
I didn't understand your question.
Do u want to hide your control or what ?
if you want to hide you can use simple
ShowWindow( hWndControl, SW_HIDE) ;
0
 
PIGCommented:
Use ActiveX.
0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 
qckingAuthor Commented:
What kind ActiveX control you talking about?

Let me staight out the question again. If you run the Source Safe and use the file difference option, you will see two version of files display side by side and the differences of these two files are highlighted by color stripes. How we can draw different colors on the RichEdit control?

0
 
qckingAuthor Commented:
Pig, your suggestion may work but I did not try it. I like to state again I want to be able to set various background colors for my RichEdit. SetBkgColor() will apply one color for all control. What if I set red for first line, and set green for second line, etc?  
0
 
PIGCommented:
Foreground color is a character attribute, but background color is a property of the rich edit control. I think that for owner backgraound color for every line You must ownerdraw RichEdit control and set it owner color for each line.
0
All Courses

From novice to tech pro — start learning today.