如题,好象不是以像素为单位的,如果更改其单位,或者他采用这种单位的好处是什么?

解决方案 »

  1.   

    字符点。有个函数:MapDialogUint(大概)进行单位转换。
      

  2.   

    MapDialogRect
    The MapDialogRect function converts the specified dialog box units to screen units (pixels). The function replaces the coordinates in the specified RECT structure with the converted coordinates, which allows the structure to be used to create a dialog box or position a control within a dialog box. GetDialogBaseUnits
    The GetDialogBaseUnits function retrieves the system's dialog base units, which are the average width and height of characters in the system font. For dialog boxes that use the system font, you can use these values to convert between dialog template units, as specified in dialog box templates, and pixels. For dialog boxes that do not use the system font, the conversion from dialog template units to pixels depends on the font used by the dialog box.