Private Sub DrawDragLine(nSplitPercent As Single)
Dim X1 As Long, Y1 As Long, X2 As Long, Y2 As Long
If m_fSplitterBarVertical Then
If m_fRightToLeft Then
X1 = CLng(m_nSplitRegionWidthPixels * _
(1# - (nSplitPercent / 100#))) - _
m_iSplitterBarThicknessPixels / 2
Else
X1 = CLng(m_nSplitRegionWidthPixels * (nSplitPercent / 100#)) - _
m_iSplitterBarThicknessPixels / 2
End If
X2 = X1 + m_iSplitterBarThicknessPixels
Y1 = 0
Y2 = m_nSplitRegionHeightPixels
Else
X1 = 0
X2 = m_nSplitRegionWidthPixels
Y1 = CLng(m_nSplitRegionHeightPixels * (nSplitPercent / 100#)) - _
m_iSplitterBarThicknessPixels / 2
Y2 = Y1 + m_iSplitterBarThicknessPixels
End If
Rectangle m_hDC, X1, Y1, X2, Y2
End Sub
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 76