看一下MSDN上关于这些参数的说明:
CDC::DrawText
Send Feedback on this topic to Microsoft. OnlineView this topic online in your default browser.
Call this member function to format text in the given rectangle. To specify additional formatting options, use CDC::DrawTextEx.
View ColorizedCopy to Clipboardvirtual int DrawText(
LPCTSTR lpszString,
int nCount,
LPRECT lpRect,
UINT nFormat
);
int DrawText(
const CString& str,
LPRECT lpRect,
UINT nFormat
);
virtual int DrawText(
LPCTSTR lpszString,
int nCount,
LPRECT lpRect,
UINT nFormat
);
int DrawText(
const CString& str,
LPRECT lpRect,
UINT nFormat
);
Parameters
lpszString
Points to the string to be drawn. If nCount is –1, the string must be null-terminated.
nCount
Specifies the number of chars in the string. If nCount is –1, then lpszString is