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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

PIGCommented:
>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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.