jjzjj

windows - 关于 TEXTMETRIC 的一些奇怪之处

我在读书Programming.Windows.5th.Edition,CharlesPetzold当我在做图4-5的时候。SYSMETS1.C,遇到如下代码:cxCaps=(tm.tmPitchAndFamily&1?3:2)*cxChar/2;书上有解释,SYSMETS1alsosavesanaveragewidthofuppercaselettersinthestaticvariablecxCaps.Forafixed-pitchfont,cxCapswouldequalcxChar.Foravariable-widthfont,cxCapsissetto150percentof