窗体desgin的属性:MaxMizeBox:No MinMizeBox:No 然后
--------------------------------------------------------------------
1、
public void run()
{ #winapi super(); winapi::ShowWindow(element.hWnd(),#SW_MAXIMIZE);}2、
public void run()
{
#define.SC_MAXIMIZE (61488)
#define.WM_SYSCOMMAND (0x0112)
super();
WinAPI::SendMessage(element.hWnd(), #WM_SYSCOMMAND, #SC_MAXIMIZE, '');
}