
         End If
      End If
      ' Check right too small:
      If (m_lMinSize(2) &gt; 0) Then
         If ((tR.Right - m_lSplitPos - m_lSplitSize) &lt; m_lMinSize(2)) Then
            m_lSplitPos = tR.Right - m_lMinSize(2) - m_lSplitSize
         End If
      End If
      ' Check left too small:
      If (m_lMinSize(1) &gt; 0) Then
         If (m_lSplitPos &lt; m_lMinSize(1)) Then
            m_lSplitPos = m_lMinSize(1)
         End If
      End If
   Else
      ' Check bottom too big:
      If (m_lMaxS