DrawText 可以设置自动换行 DT_WORDBREAKBreaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
MeasureString
出 WM_paint 消息,就可以得到字符串的内容。(我也没试过)
If this is not specified, output is on one line.