设定字体的DrawText的使用方法
RECT rect;
SetRect (&rect, – cxPage / 2, cyPage / 2, cxPage / 2 , – cyPage / 2);
SetTextColor(hdcTpt,RGB(255,0,0));
DrawText (hdcTpt, TEXT (“测试文字!”), -1, &rect,
DT_SINGLELINE | DT_CENTER | DT_VCENTER) ;
RECT rect;
SetRect (&rect, – cxPage / 2, cyPage / 2, cxPage / 2 , – cyPage / 2);
SetTextColor(hdcTpt,RGB(255,0,0));
DrawText (hdcTpt, TEXT (“测试文字!”), -1, &rect,
DT_SINGLELINE | DT_CENTER | DT_VCENTER) ;