怎么设定Property Sheet的大小?
Posted on 八月 16rd, 2007 由 admin
我在propertysheet中插入了几个propertypage。
我想调整一下整个propertysheet的大小。应该怎么做?
而且好像插入的page的大小比在对话框编辑器中看到的要大。
推荐阅读
网友:blithe_bird
可以设定几个propertypage差不多大,
propertysheet 是根据属性页自动调整的。
网友:nogreat
对呀,它取你定义的对话框中最宽的值和最高的值。所以小的对话框还是大。
网友:lifg
可以用setwindowpos设置其大小和位置的!
比如
crect rect;
if(getsystemmetrics(sm_cxscreen)<1000)
rect.setrect(120,65,790,580);
else
rect.setrect(200,70,1010,700);
m_mainsheet.setwindowpos(null, rect.left, rect.top, rect.width(),
rect.height(),swp_nozorder | swp_noactivate );


讨论区