",7,7,194,77,是x,y,cx,cy。他和控件的大小什么区别呀?"
在资源文件中,这是 对话框 单位, 不是 pixel 单位。
GetDialogBaseUnits
The GetDialogBaseUnits function returns 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.
For either type of dialog box, it is easier to use the MapDialogRect function to perform the conversion. MapDialogRect takes the font into account and correctly converts a rectangle from dialog template units into pixels.
LONG GetDialogBaseUnits(VOID)
Parameters
This function has no parameters.
Return Values
The return value is a 32-bit value that contains the dialog base units. The low-order word of the return value contains the horizontal dialog box base unit, and the high-order word contains the vertical dialog box base unit.