Original Post
Hi again!
I want to display text for debugging purposes, so the speed doesnt matter and since im a newbie, i would like to keep it simple.
This is what i use:
PAINTSTRUCT ps;
HDC hdc;
hdc=GetDC(hWnd);
TCHAR cMessage[100];
lstrcpy( cMessage, _T("Arial") );
SetTextColor(hdc,RGB(0,0,0));
SetBkColor(hdc,RGB(255,255,255));
SetBkMode(hdc,TRANSPARENT);
hdc = BeginPaint (hWnd, &ps);
TextOut(hdc,400,300,cMessage,strlen(cMessage));
EndPaint( hWnd, &ps );
It works, but directx overwrites the text. How can i get it to stay on top?
And is there a tutorial how to use the directx drawtext methods?
Its hard to get started with it.
Thank you!