victor:
我看就是自己做也不难,几天前找到一个method好像是能缩放form and controls in form,但现在找不出来了,等我找到了在贴出来.下面我提供一种方法,你看行不行!
TWinControl *button;
for(int i=0; i < ComponentCount; i++)
{
//Check to see if the component is a TWinControl
if (dynamic_cast<TWinControl *>(Components))
{
//cast the component to a TButton *
button = (TWinControl *)Components;
button->ScaleBy(1,2);// 缩放函数,1/2=50%.
}
}
然后你可以改变form的height and width.