Click to See Complete Forum and Search --> : Edit ctrl with Background Image


Vintik
July 21st, 2006, 06:45 AM
Hello people,
I need to make an edit control with Background Image

case WM_ERASEBKGND:
fromDC=CreateCompatibleDC((HDC) wParam);
SetBkMode(fromDC, TRANSPARENT);
SelectObject(fromDC, hBmpEdit);
k=BitBlt(
(HDC) wParam,
0, 0, 100, 70,
fromDC,
0, 0,
SRCCOPY);
DeleteDC(fromDC);
break;

It works OK, but there are some problems, when I write some words in the edit control, the background image is erasing by my input. And SetBkMode doesn't help me. Look at the pictures plz.
Any ideas?

Vintik
July 22nd, 2006, 06:29 AM
Help plz :(