在线等
谢过
2010-07-28 09:14
2010-07-28 09:15
2010-07-28 09:23
程序代码:
Private Sub MDIForm_Resize()
Dim w As Single
Dim p As Panel
''取平均值
'w = Me.Width / StatusBar1.Panels.Count
'
'For Each p In StatusBar1.Panels
' p.Width = w
'Next
'只调整最后一个panel
Dim totalWidth As Single
For Each p In StatusBar1.Panels
totalWidth = totalWidth + p.Width
Next
Set p = StatusBar1.Panels(StatusBar1.Panels.Count)
On Error Resume Next
p.Width = p.Width + Me.Width - totalWidth
Set p = Nothing
End Sub
2010-07-28 10:28
2010-07-28 10:54
2010-07-28 11:00
2010-07-28 11:06
2010-07-28 11:11
2010-07-28 11:38
2010-07-28 11:46