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?
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?