1,108
社区成员




Long ll_x, ll_y, ll_width, ll_height
if isvalid(w_mdi) then
ll_width = w_mdi.mdi_1.width
ll_height = w_mdi.mdi_1.height
end if
ll_x = (ll_width - This.Width) / 2
ll_y = (ll_height - This.Height) / 2
win.Move(ll_x , ll_y)
if isvalid(w_mdi) then //w_mdi是指MDI父窗口,需要换成你的
win.x = max(0 ,(w_mdi.width - win.width) / 2)
win.y = max(0, (w_mdi.mdi_1.height - win.height) / 2)
end if