ize(2) &gt; 0) Then
         If ((tR.Bottom - m_lSplitPos - m_lSplitSize) &gt; m_lMaxSize(2)) Then
            m_lSplitPos = tR.Bottom - m_lMaxSize(2) - m_lSplitSize
         End If
      End If
      ' Check top too big:
      If (m_lMaxSize(1) &gt; 0) Then
         If (m_lSplitPos &gt; m_lMaxSize(1)) Then
            m_lSplitPos = m_lMaxSize(1)
         End If
      End If
      ' Bottom too small:
      If (m_lMinSize(2) &gt; 0) Then
         If ((tR.Bottom - m_lSplitPos - m_lSplitSize) &lt; m_lMinSize(2