>= MIN_PANE_HEIGHT Then pbBottom.Move 0, TopHeight + SPLITTER_HEIGHT, ScaleWidth, BottomHeight End If End Sub Private Sub Form_Load() ' Initially each pane gets half the window. TopPanePercent = 0.5 End Sub Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, _ Y As Single) ' Start dragging the splitter. Dragging = True End Sub Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, _ Y As Single) ' As the splitter is dragged. 页码:[1] [2] [3] [4] [5] [6] 第4页、共6页 |