英语好的能翻译下吗?
EASYSIZE Macro
The EASYSIZE macro is used in the EasySize Map to specify what behavior your controls will have on dialog resize. It looks like this:
EASYSIZE(control,left,top,right,bottom,options)
control is the ID of the dialog item you want re-positioned (which will be referred to as the 'current control ' further on).
left, top, right and bottom can be either the ID of another control in the dialog (not the current control), or one of the special values, ES_BORDER and ES_KEEPSIZE.
Basically, if you specify an ID, the distance from the current control and the item designated by the ID will remain the same when the dialog is resized: The current control will 'stick ' to the other item. ES_BORDER works the same way as if you had specified a control ID, except that it 's the distance between the current control and the dialog border that will be kept constant. Specifying ES_KEEPSIZE in, let 's say left, will keep the width of the current control the same, and will make the current control right-aligned to whatever you specified in right. The width (or height, if you specified ES_KEEPSIZE in top or bottom) of the current control will always remain what it is in the dialog resource. (I know this explanation sucks, but look at the demo application if you are confused or post you question in the board below). Obviously ES_KEEPSIZE cannot be specified in both "left and right " or "top and bottom ".
options can be a combination of ES_HCENTER, ES_VCENTER and 0 (use 0 if you don 't want any of the other). ES_HCENTER horizontally centers the control between the two items specified in left and right (both of those can not be ES_KEEPSIZE!). The width of the current control will always remain the same as in the dialog resource. ES_VCENTER works the same way, but for vertical centering (using top and bottom, and where the height will remain constant).
[解决办法]
EASYSIZE宏
EASYSIZE宏是用在EasySize地图中来指定在对话框大小改变时你的控件具有的行为。它看起来像这样。。。
英语不好也来翻译一句,楼主给一分吧~
[解决办法]
EASYSIZE Macro
The EASYSIZE macro is used in the EasySize Map to specify what behavior your controls will have on dialog resize. It looks like this:
EASYSIZE宏在EASYSIZE 地图里被用来确定 当对话框大小改变时,控件所产生的动作是怎样的。
=========================================================================
EASYSIZE(control,left,top,right,bottom,options)
control is the ID of the dialog item you want re-positioned (which will be referred to as the 'current control ' further on).
control:对话框中要改变位置(大小)的项的ID
=========================================================================
left, top, right and bottom can be either the ID of another control in the dialog (not the current control), or one of the special values, ES_BORDER and ES_KEEPSIZE.
left, top, right and bottom:可以是对话框中其它控件的ID(不是当前控件的ID),或者是ES_BORDER and ES_KEEPSIZE中的任意一个。
=========================================================================
Basically, if you specify an ID, the distance from the current control and the item designated by the ID will remain the same when the dialog is resized: The current control will 'stick ' to the other item.
基本上,如果人为指定一个ID,当对话框大小改变时,当前控件与从此ID派生出来的控件的间隔保持不变,导致当前控件与其它控件“粘”在一起(重合吧)。
=========================================================================
ES_BORDER works the same way as if you had specified a control ID, except that it 's the distance between the current control and the dialog border that will be kept constant.
如果指定一个ID,ES_BORDER也一样的原理。只不过当前控件与对话框的边框保持不变而已。
=========================================================================
Specifying ES_KEEPSIZE in, let 's say left, will keep the width of the current control the same, and will make the current control right-aligned to whatever you specified in right.
当left的参数为ES_KEEPSIZE时,不管在right里使用何值,当前控件宽度都保持不变,且右对齐。
=========================================================================
The width (or height, if you specified ES_KEEPSIZE in top or bottom) of the current control will always remain what it is in the dialog resource. (I know this explanation sucks, but look at the demo application if you are confused or post you question in the board below). Obviously ES_KEEPSIZE cannot be specified in both "left and right " or "top and bottom ".
控件宽度(如果在top或bottom里指定为ES_KEEPSIZE)会保持对话框资源里的大小。看看DemoApp,如果还是有疑问,在下面写上你的问题通知我们。很明显,ES_KEEPSIZE不能同时作为left and right或者top and bottom.
=================================================================================
options can be a combination of ES_HCENTER, ES_VCENTER and 0 (use 0 if you don 't want any of the other). ES_HCENTER horizontally centers the control between the two items specified in left and right (both of those can not be ES_KEEPSIZE!).
选项可以是ES_HCENTER, ES_VCENTER 或者0(0-不想指定其它参数)。ES_HCENTER水平位于left和right指定的两个项中间。
=================================================================================
The width of the current control will always remain the same as in the dialog resource. ES_VCENTER works the same way, but for vertical centering (using top and bottom, and where the height will remain constant).
控件宽度总是与对话框资源里的数据保持一致。ES_VCENTER的用法一样,只不过它是垂直的而已。(top和bottom,高度保持不变)
翻译的也不怎么样,凑合看吧,呵呵……
=====================================================================