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

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   
   ); 
只能获得字符串的宽度

原文地址:https://www.cnblogs.com/yzryc/p/6374314.html