im having a problem using DrawText right after I create and show a window. What is going on here because when I post the drawtext stuff where the system calls WM_PAINT then everything goes fine what is going on is the text getting written over or what? Here is the code im using...
// ......... stuff before this
// show and update the window
ShowWindow(g_hWnd, nCmdShow);
UpdateWindow(g_hWnd);
RECT rect;
PAINTSTRUCT ps;
HDC hDC;
hDC = BeginPaint(g_hWnd, &ps);
GetClientRect(g_hWnd, &rect);
SetBkMode(hDC, TRANSPARENT);
SetTextColor(hDC, RGB(255, 0, 0));
DrawText(hDC, "Hello World!", -1, &rect, DT_LEFT);
EndPaint(g_hWnd, &ps);
// stuff after this....
Can anyone help me???
Thanks for anything ahead of time