Okay so I wont to output text onto my win32 program. I read somewhere that TextOut() is the function i need but it is not as good as DrawText(); Ive been trying to use DrawText() but i get stuck at the 4 parameter asking for a RECT. Any help ? im Using VS2010
void paintWindow(HWND hWnd) {
HDC hdc = GetDC(hWnd);
char szSize[100];
char szTitle[] = "These are the dimensions of your client area:";
SetTextColor(hdc, COLORREF RGB (20, 13, 20));
LPRECT rect;
GetClientRect(hWnd, rect);
DrawText(hdc, (LPCWSTR) szTitle, -1, /*NEED HELP HERE*/, DT_WORDBREAK);
}