在CFont中fdwClipPrecision 是什么用的,能具体一点吗 麻烦不要叫我看MSDN 小弟英文很差

解决方案 »

  1.   

    Specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region. It can be one or more of the following values. Value Meaning 
    CLIP_DEFAULT_PRECIS Specifies default clipping behavior. 
    CLIP_CHARACTER_PRECIS Not used. 
    CLIP_STROKE_PRECIS Not used by the font mapper, but is returned when raster, vector, or TrueType fonts are enumerated. 
    Windows NT/2000/XP: For compatibility, this value is always returned when enumerating fonts.
     
    CLIP_MASK Not used. 
    CLIP_EMBEDDED You must specify this flag to use an embedded read-only font. 
    CLIP_LH_ANGLES When this value is used, the rotation for all fonts depends on whether the orientation of the coordinate system is left-handed or right-handed. 
    If not used, device fonts always rotate counterclockwise, but the rotation of other fonts is dependent on the orientation of the coordinate system.For more information about the orientation of coordinate systems, see the description of the nOrientation parameter
     
    CLIP_TT_ALWAYS Not used. 剪切精密度~~
    你把这几个值试下就知道有什么不同了
      

  2.   

    还有个例子
    Setting Fonts for Menu-Item Text Strings
    This topic contains an example from an application that uses owner-drawn menu items in a menu. The menu contains items that set the attributes of the current font, and the items are displayed using the appropriate font attribute.Here is how the menu is defined in the resource-definition file. Note that the strings for the Regular, Bold, Italic, and Underline menu items are assigned at run time, so their strings are empty in the resource-definition file.