总结一下:
1.GetTextMetrics函数
tm.tmHeight, tm.tmAveCharWidth
2.GetTextExtentPoint32函数
SIZE结构
3.DrawText函数
利用DT_CALCRECT选项获得矩形大小
http://blog.youkuaiyun.com/chenyujing1234/article/details/7469410
总结一下:
1.GetTextMetrics函数
tm.tmHeight, tm.tmAveCharWidth
2.GetTextExtentPoint32函数
SIZE结构
3.DrawText函数
利用DT_CALCRECT选项获得矩形大小
http://blog.youkuaiyun.com/chenyujing1234/article/details/7469410