Hi,
The following.. i managed to add a bitmap to the background of the first =
screen, i even managed to add
text to that screen but it seems that i cant do both..=20
----
case WM_CREATE:
static HBITMAP hBmBg;
hBmBg =3D LoadBitmap(GetModuleHandle(NULL),
MAKEINTRESOURCE(IDBM_WELCOME_BG));
----
This will load a bitmap image i defined in the resource into the first =
window i created.=20
----
RECT rt;
hdc =3D BeginPaint(hwndwelcome, &ps);
GetClientRect(hwndwelcome, &rt);
SetBkMode(hdc,TRANSPARENT);
// SetRect(&rt,50,50,200,200);
SetTextColor(hdc, RGB(0,0,0));
DrawText(hdc, TEXT("blabalabalalala"),-1, &rt,0);
EndPaint(hwndwelcome, &ps);
----
With this i am able to write text to the screen..=20
But somehow, whatever i do.. the one over rules the other one..=20
how can i write text on that background image??..
I dont expect sources but can some give me a direction where i have to =
look for.. must do some things before
ShowWindow(hwndwelcome, nFunsterStil);
or after but not at the section WM_CREATE when handeling msg
s.. ?
|