Click to See Complete Forum and Search --> : How to use bitmap as background for edit control?


Oleg
May 12th, 1999, 03:08 AM
Hello all,
How to use bitmap as background for edit control?
Thanks

Roland Seibert
May 12th, 1999, 05:50 AM
In your OnInitDialog you can receice your edit control and subclass it to your own CWnd Object. This CWnd object must handle the OnEraseBkGnd(). Here you can put code to draw a bitmap.

If you only what a pattern brush or another color you can handle the OnCtrlColor() in your dialog class

Hope this helps