hi ASM coders,


Good Day to all!

I want my editbox have a background bmp image.
is it posible?



regards,
coredump
Posted on 2003-12-01 21:40:50 by coredump
coredump
in w98/wme/w2k/wxp
...

// in MainWndProc
case WM_CTLCOLOREDIT:
if ( NULL != hwndEdit && (HWND)lParam == hwndEdit)
{
SetBkMode((HDC)wParam, TRANSPARENT); // !!!
return (LRESULT) hbrBack;
// where hbrBack = CreatePatternBrush(LoadBitmap(hInstance, ...));
}
break;
...
Posted on 2003-12-01 22:55:36 by P2M