Q: EditBox colors ......

Q: EditBox colors ......

Post by C.Blou » Fri, 04 Jun 1999 04:00:00

Hi ....

I have a problem with transparency  ....

This remedies the situation:
SetBkMode ((HDC) wParam, TRANSPARENT);

But, ....when I edit (delete) some characters the colors start to
smear !

        LogBrush.lbColor = rgbBackColor;
        LogBrush.lbStyle = BS_SOLID;

        SetTextColor ((HDC) wParam, rgbForeColor);
        SetBkColor ((HDC) wParam, rgbBackColor);

        return ((LPARAM) CreateBrushIndirect (&LogBrush));

This works fine but the text background differs slightly from the rest
of the background in the EditBox ....(the text backcolor is solid, and
the rest seems dithered ....

How can I get around this ?



1. How to move from EditBox to EditBox ?

Hi all

I have 3 CEdit instances I create at run time in my MFC dialog based
application as the dialog members.
How do I move the focus between them from my code ( not by TAB as from the
user input) ?
How do I mimic a TAB press OR How do I set a certain CEdit box to be the one
that is active?

I've tried :
with no luck.

P.S. how do I control the position of the cursor inside the edit box ?

Thanks All :)

2. "Way cool" learning tool...

3. Q: EditBox colors ......

4. Fwd: v. 8.8.7 Sendmail can receive but not send mail

5. Coloring an editbox

6. USB keyboard problem

7. Dynamic Colored EditBox

8. FS: SGI systems

9. Coloring an editbox

10. EditBox Colours problem

11. Font color into EditBox

12. Set Color of a EditBox, How?