Pashka
May 16th, 1999, 12:16 PM
Hi all!
I have the following problem: I have a CEdit control with a bitmap on
its background.
I made a CEdit derived class CMyEdit for this purpose.
Now, two threads of the problem are:
1. If a put the background when overriding OnEraseBkgnd in CMyEdit,
then the text is displayed well, but the space right under the text
is painted white, not bitmap I want. (CDC::SetBkMode(TRANSPARENT) for
the relevant CDC doesnot work)
2. If I put the background when overridinf CtrlColor in CMyEdit,
then the space under the text is painted correctly, but only current
line of the text is painted - all the rest disappears.
Please tell me what the problem in what I do, or if you know a sample
of CEdit ctrl with a bitmap beneath, please tell me.
TAT,
Pashka
I have the following problem: I have a CEdit control with a bitmap on
its background.
I made a CEdit derived class CMyEdit for this purpose.
Now, two threads of the problem are:
1. If a put the background when overriding OnEraseBkgnd in CMyEdit,
then the text is displayed well, but the space right under the text
is painted white, not bitmap I want. (CDC::SetBkMode(TRANSPARENT) for
the relevant CDC doesnot work)
2. If I put the background when overridinf CtrlColor in CMyEdit,
then the space under the text is painted correctly, but only current
line of the text is painted - all the rest disappears.
Please tell me what the problem in what I do, or if you know a sample
of CEdit ctrl with a bitmap beneath, please tell me.
TAT,
Pashka