There are no available options for this view.

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by botg, Fri Mar 15 17:32:07 2002 UTC revision 1.3 by botg, Fri Apr 12 15:39:50 2002 UTC
# Line 908  Line 908 
908                  CString strLine;                  CString strLine;
909    
910                  //Ensure that as much space as possible is used                  //Ensure that as much space as possible is used
911                  if (GetLineCount()<static_cast<int>(GetMaxViewableLines()))                  if (GetLineCount()<=static_cast<int>(GetMaxViewableLines()))
912                  {                  {
913                          nMasterY -= (GetMaxViewableLines()-GetLineCount())*m_nFontHeight;                          nMasterY = clientRc.top+GetLineCount()*m_nFontHeight+3;
914                  }                  }
915                    else if (m_nHead < GetMaxViewableLines())
916                    {
917                            nMasterY = clientRc.top+(GetMaxViewableLines()+1)*m_nFontHeight+3;
918                            nRunner++;
919                    }
920    
921                    CRect solidRc = clientRc;
922                    solidRc.top = solidRc.bottom-m_nFontHeight;
923                    dc.FillSolidRect( &solidRc, m_BackCol );
924    
925                  do                  do
926                  {                  {
927                          // -----------------------------------------------------                          // -----------------------------------------------------
928                          // Reset Colours:                          // Reset Colours:
929                          // -----------------------------------------------------                          // -----------------------------------------------------
930    
   
931                          dc.SetBkColor( m_BackCol );                          dc.SetBkColor( m_BackCol );
932                          dc.SetTextColor( m_ColTable[ m_nDefTextCol ] );                          dc.SetTextColor( m_ColTable[ m_nDefTextCol ] );
933    
# Line 1137  Line 1146 
1146                  UpdateHScroll();                  UpdateHScroll();
1147                  UpdateVScroll();                  UpdateVScroll();
1148          };          };
1149            if (m_nHead<GetMaxViewableLines())
1150            {
1151                    m_nHead=m_Lines.GetSize()-1;
1152                    if (m_nHead>=GetMaxViewableLines())
1153                            m_nHead=GetMaxViewableLines()-1;
1154            }
1155  }  }
1156    
1157    
# Line 1303  Line 1318 
1318          else if (nScroll<0)          else if (nScroll<0)
1319          {          {
1320                  m_nHead-=nScroll*3;                  m_nHead-=nScroll*3;
1321                  while( m_nHead > (GetLineCount()-1) )                  while( m_nHead >= GetLineCount() )
1322                  {                  {
1323                          m_nHead--;                          m_nHead--;
1324    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3