1 / 13
文档名称:

easysize h ( easysize h ).doc

格式:doc   大小:21KB   页数:13页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

easysize h ( easysize h ).doc

上传人:rjmy2261 2017/12/2 文件大小:21 KB

下载得到文件列表

easysize h ( easysize h ).doc

文档介绍

文档介绍:__easysize_h_(__easysize_h_)
-04-15 18:56 / * =================================================== * \
| |
| easy-size宏|
| |
|版权所有(C)2001 Marc Richarme |
| ******@devix. |
| http://devix. |
| |
|许可:|
| |
|mersial或非使用此代码|
| commersial应用,你可以重新分配|
|这个文件(甚至修改它,如果你希望为|)
|只要你把这个通知在任何|不变
你|版发布。|
| |
|用法:|
| |
|插入的declare_easysize”的地方,在你的|
|类声明|
| -插入EasySize地图在开始你的|
|类的实现(见文献)和|
|任何功能外。|
|插入的init_easysize;在你的|
| OnInitDialog处理程序。|
|插入的update_easysize '在你| onsize函数处理程序
|可选:插入“easysize_minsize(MX,我在|);
|如果你想指定的|你onsizing处理程序
|尺寸为您的对话框|最小
| |
|为|检查http://devix.
|文档版本和新版本|
| |
=================================================== \ * * /
#则__easysize_h_
#定义__easysize_h_
#定义es_border 0xffffffff
#定义es_keepsize 0xfffffffe
#定义es_hcenter 0x00000001
#定义es_vcenter 0x00000002
#定义declare_easysize \
无效__es__repositioncontrols(bool二进制数位);\
无效__es__calcbottomright(CWnd *这,布尔bbottom,int和int、uint右下,左上角,身份证,单位es_br BR,int,int CRect和矩形,clientbottomright);
#定义init_easysize __es__repositioncontrols(true);__es__repositioncontrols(假)
#定义update_easysize如果(GetWindow(gw_child)!
= null) _ _ es _ _ repositioncontrols (false)
# define easysize _ minsize (mx, my, s, r) if (r - > right - r - > left (mx) {if ((s = = wmsz _ bottomleft) | | (s = = wmsz _ left) | | (s = = wmsz _ topleft)) r - > left = r - > right - mx; else r - > right = r - > left + mx;} if (r - > bottom r - > top < my) {if ((s = = wmsz _ top) | | (s = = wmsz _ topleft) | | (s = = wmsz _ topright)) r - > top = s - > bottom my; else r - > bottom = r - > top + my;}
# define begin _ easysize _ map (class).
void class:: _ _ es _ _ calcbottomright (cwnd * pthis, all bbottom, int & bottomright, int & topleft, uint id, uint br, int es _ br, crect & rect, int clientbottomright) {\
if (br = = es _ border) bottomright = clientbottomright - es _ br; \
else if (br = = es _ keepsize) bottomright = topleft + es _ br; \
else {crect rect2; \
pthis - > getdlgitem (br) - > getwindowrect (rect2);