ged. Private Dragging As Boolean Private Sub ChangePaneSizes() ' Arrange the panes according to the new splitter position. Dim TopHeight As Single Dim BottomHeight As Single ' Do nothing if window is minimized. If WindowState = vbMinimized Then Exit Sub TopHeight = (ScaleHeight - SPLITTER_HEIGHT) * TopPanePercent If TopHeight < MIN_PANE_HEIGHT Then TopHeight = MIN_PANE_HEIGHT pbTop.Move 0, 0, ScaleWidth, TopHeight BottomHeight = (ScaleHeight - SPLITTER_HEIGHT) - TopHeight If BottomHeight 页码:[1] [2] [3] [4] [5] [6] 第3页、共6页 |