在右下角有一个x*x请问这个大小是什么大小,如何和像数对应起来?

解决方案 »

  1.   

    可以这么估算 x * y 对应的像素为 (x * 1.5) * (y * 1.5),就是长宽分别多了约 1.5 倍。
      

  2.   

    Dialog-box units are stated in terms of the current dialog-box base unit derived from the average width and height of characters in the font used for dialog-box text. One horizontal unit is one-fourth of the dialog-box base-width unit, and one vertical unit is one-eighth of the dialog-box base height unit.The GetDialogBaseUnits Windows function returns size information for the system font, but you can specify a different font for each dialog box if you use the DS_SETFONT style in the resource-definition file. The MapDialogRect Windows function uses the appropriate font for this dialog box.The MapDialogRect member function replaces the dialog-box units in lpRect with screen units (pixels) so that the rectangle can be used to create a dialog box or position a control within a box.