首页 > 其他 > 详细

如何获得以像素计算的字体宽度

时间:2017-02-07 16:22:09      阅读:164      评论:0      收藏:0      [点我收藏+]

BOOL GetTextExtentPoint32(

    HDC hdc, // handle of device context 
    LPCTSTR lpString, // address of text string 
    int cbString, // number of characters in string 
    LPSIZE lpSize // address of structure for string size   
   ); 
只能获得字符串的宽度

如何获得以像素计算的字体宽度

原文:http://www.cnblogs.com/yzryc/p/6374314.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!