if bFirstTime then //第一次修改窗口大小 //保存原始尺寸 iorigwidth=iwindowwidth iorigheight=iwindowheight ibuttongap=cb_2.x - (cb_1.x + cb_1.width) ibutton_bottom=iworkheight - (cb_1.y + cb_1.height) ibutton_left=cb_1.x ibutton_dw=cb_1.y - dw_1.height bFirstTime=false return else //原始窗口不能调得过小,以避免控件重叠 if iwindowwidth$#@60;cb_3.x + cb_3.width + ibutton_left or iwindowheight$#@60;cb_1.height + ibutton_dw +ibutton_bottom + dw_1.y then this.resize(iorigwidth,iorigheight) return end if end if