When I draw text on an dc, the text comes out with rough edges, and on the multiple windows that this WindowProc handles, the text between each of them look different, which looks unprofessional. Is there a way to draw it so it comes out with crisp, smooth edges?
case WM_PAINT:
{
GetClientRect(hwnd, &rect);
hdc = BeginPaint(hwnd, &ps);
hdcmem = CreateCompatibleDC(hdc);
BITMAP bm;
HBITMAP hbmold = (HBITMAP)SelectObject(hdcmem, gbutton);
GetObject(gbutton, sizeof(bm), &bm);
SetBkMode(hdcmem, TRANSPARENT);
SetTextColor(hdcmem, RGB(74,88,91));
HFONT hf = CreateFont(30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, L"Myriad Pro");
HFONT hfold = (HFONT)SelectObject(hdcmem, hf);
//the next line works fine, but with rough text edges.
DrawText(hdcmem, L"Drag a\r\nFile\r\nHere", -1, &rect, DT_CENTER | DT_VCENTER );
SelectObject(hdcmem, hfold);
BitBlt(hdc, 0,0,bm.bmWidth,bm.bmHeight,hdcmem,0,0,SRCCOPY);
SelectObject(hdcmem, hbmold);
DeleteDC(hdcmem);
EndPaint(hwnd, &ps);
break;
}