Tuesday, November 26, 2013

How to draw text in Windows (simple API)



HDC hdc;
hdc = GetDC(m_hWnd);

RECT r;
GetClientRect(m_hWnd, &r);


ExtTextOut(hdc, 500, 500, ETO_CLIPPED, &r, L"test", 4, NULL);

0 Comments:

Post a Comment

<< Home