diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
commit | f6883a2c09507d0acb9ccbf0156e5948211dc480 (patch) | |
tree | 7789b4fecd6b2e846f070e2e0bdb1e16ea7555e9 /src/apps/mplayerc/LineNumberEdit.cpp | |
parent | e9b446380bc3bc122e3e3a1d0622163a5f1920a3 (diff) |
astyle formatting
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2103 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/LineNumberEdit.cpp')
-rw-r--r-- | src/apps/mplayerc/LineNumberEdit.cpp | 488 |
1 files changed, 244 insertions, 244 deletions
diff --git a/src/apps/mplayerc/LineNumberEdit.cpp b/src/apps/mplayerc/LineNumberEdit.cpp index fba4884cb..ff119192e 100644 --- a/src/apps/mplayerc/LineNumberEdit.cpp +++ b/src/apps/mplayerc/LineNumberEdit.cpp @@ -108,28 +108,28 @@ CLineNumberEdit::CLineNumberEdit() ============================================================*/
{
- m_hWnd = NULL;
- m_line.m_hWnd = NULL;
- m_zero.cx = 0;
- m_zero.cy = 0;
- m_format = _T( "%03i" );
- m_LineDelta = 1;
+ m_hWnd = NULL;
+ m_line.m_hWnd = NULL;
+ m_zero.cx = 0;
+ m_zero.cy = 0;
+ m_format = _T( "%03i" );
+ m_LineDelta = 1;
- // Could default m_maxval to 99,999, but may cause problems
- // if m_format is changed and m_maxval is not...
- m_maxval = 998;
+ // Could default m_maxval to 99,999, but may cause problems
+ // if m_format is changed and m_maxval is not...
+ m_maxval = 998;
- // Setting up so by defult the original hard-coded colour
- // scheme is used when enabled and the system colours are
- // used when disabled.
- m_bUseEnabledSystemColours = FALSE;
- m_bUseDisabledSystemColours = TRUE;
- m_EnabledFgCol = RGB( 0, 0, 0 );
- m_EnabledBgCol = RGB( 200, 200, 200 );
- m_DisabledFgCol = GetSysColor( COLOR_GRAYTEXT );
- m_DisabledBgCol = GetSysColor( COLOR_3DFACE );
+ // Setting up so by defult the original hard-coded colour
+ // scheme is used when enabled and the system colours are
+ // used when disabled.
+ m_bUseEnabledSystemColours = FALSE;
+ m_bUseDisabledSystemColours = TRUE;
+ m_EnabledFgCol = RGB( 0, 0, 0 );
+ m_EnabledBgCol = RGB( 200, 200, 200 );
+ m_DisabledFgCol = GetSysColor( COLOR_GRAYTEXT );
+ m_DisabledBgCol = GetSysColor( COLOR_3DFACE );
- SetWindowColour();
+ SetWindowColour();
}
@@ -148,16 +148,16 @@ CLineNumberEdit::~CLineNumberEdit() }
BEGIN_MESSAGE_MAP(CLineNumberEdit, CEdit)
- ON_CONTROL_REFLECT(EN_CHANGE, OnChange)
- ON_WM_VSCROLL()
- ON_CONTROL_REFLECT(EN_VSCROLL, OnVscroll)
- ON_MESSAGE(WM_SETFONT, OnSetFont)
- ON_WM_SIZE()
- ON_MESSAGE(WM_SETTEXT, OnSetText)
- ON_WM_SYSCOLORCHANGE()
- ON_WM_ENABLE()
- ON_MESSAGE(EM_LINESCROLL, OnLineScroll)
- ON_REGISTERED_MESSAGE(urm_SELECTLINE, OnSelectLine)
+ ON_CONTROL_REFLECT(EN_CHANGE, OnChange)
+ ON_WM_VSCROLL()
+ ON_CONTROL_REFLECT(EN_VSCROLL, OnVscroll)
+ ON_MESSAGE(WM_SETFONT, OnSetFont)
+ ON_WM_SIZE()
+ ON_MESSAGE(WM_SETTEXT, OnSetText)
+ ON_WM_SYSCOLORCHANGE()
+ ON_WM_ENABLE()
+ ON_MESSAGE(EM_LINESCROLL, OnLineScroll)
+ ON_REGISTERED_MESSAGE(urm_SELECTLINE, OnSelectLine)
END_MESSAGE_MAP()
void CLineNumberEdit::PreSubclassWindow()
@@ -176,12 +176,12 @@ void CLineNumberEdit::PreSubclassWindow() ============================================================*/
{
- // Unfortunately, we can't change to ES_MULTILINE
- // during run-time.
- ASSERT( GetStyle() & ES_MULTILINE );
+ // Unfortunately, we can't change to ES_MULTILINE
+ // during run-time.
+ ASSERT( GetStyle() & ES_MULTILINE );
- // Creating the line number control
- SetLineNumberFormat( m_format );
+ // Creating the line number control
+ SetLineNumberFormat( m_format );
}
@@ -202,10 +202,10 @@ void CLineNumberEdit::OnSysColorChange() ============================================================*/
{
- CEdit::OnSysColorChange();
+ CEdit::OnSysColorChange();
- // update the CStatic with the new colours
- SetWindowColour( IsWindowEnabled() );
+ // update the CStatic with the new colours
+ SetWindowColour( IsWindowEnabled() );
}
@@ -224,10 +224,10 @@ LRESULT CLineNumberEdit::OnSetText( WPARAM wParam, LPARAM lParam ) ============================================================*/
{
- // Default processing
- LRESULT retval = DefWindowProc( WM_SETTEXT, wParam, lParam );
- UpdateTopAndBottom();
- return retval;
+ // Default processing
+ LRESULT retval = DefWindowProc( WM_SETTEXT, wParam, lParam );
+ UpdateTopAndBottom();
+ return retval;
}
@@ -246,7 +246,7 @@ void CLineNumberEdit::OnChange() ============================================================*/
{
- UpdateTopAndBottom();
+ UpdateTopAndBottom();
}
@@ -264,7 +264,7 @@ void CLineNumberEdit::OnVscroll() ============================================================*/
{
- UpdateTopAndBottom();
+ UpdateTopAndBottom();
}
@@ -285,8 +285,8 @@ void CLineNumberEdit::OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar ============================================================*/
{
- CEdit::OnVScroll( nSBCode, nPos, pScrollBar );
- UpdateTopAndBottom();
+ CEdit::OnVScroll( nSBCode, nPos, pScrollBar );
+ UpdateTopAndBottom();
}
@@ -302,10 +302,10 @@ LRESULT CLineNumberEdit::OnLineScroll( WPARAM wParam, LPARAM lParam ) ============================================================*/
{
- // Default processing
- LRESULT retval = DefWindowProc( EM_LINESCROLL, wParam, lParam );
- UpdateTopAndBottom();
- return retval;
+ // Default processing
+ LRESULT retval = DefWindowProc( EM_LINESCROLL, wParam, lParam );
+ UpdateTopAndBottom();
+ return retval;
}
@@ -324,11 +324,11 @@ LRESULT CLineNumberEdit::OnSetFont( WPARAM wParam, LPARAM lParam ) ============================================================*/
{
- DefWindowProc( WM_SETFONT, wParam, lParam );
- // We resize the line-number
- // field
- Prepare();
- return 0;
+ DefWindowProc( WM_SETFONT, wParam, lParam );
+ // We resize the line-number
+ // field
+ Prepare();
+ return 0;
}
@@ -348,13 +348,13 @@ void CLineNumberEdit::OnSize( UINT nType, int cx, int cy ) ============================================================*/
{
- CEdit::OnSize( nType, cx, cy );
+ CEdit::OnSize( nType, cx, cy );
- // If we have the line-number
- // control, it must be resized
- // as well.
- if( m_line.m_hWnd )
- Prepare();
+ // If we have the line-number
+ // control, it must be resized
+ // as well.
+ if( m_line.m_hWnd )
+ Prepare();
}
@@ -371,8 +371,8 @@ void CLineNumberEdit::OnEnable( BOOL bEnable ) ============================================================*/
{
- CEdit::OnEnable( bEnable );
- SetWindowColour( bEnable );
+ CEdit::OnEnable( bEnable );
+ SetWindowColour( bEnable );
}
@@ -393,12 +393,12 @@ LRESULT CLineNumberEdit::OnSelectLine(WPARAM wParam, LPARAM /*lParam*/ ) ============================================================*/
{
- // Calc start and end position of the line
- int lineno = wParam + GetScrollPos( SB_VERT );
- int start = LineIndex( lineno );
- int end = LineIndex( lineno + 1 );
- SetSel( start, end - 1 );
- return 0;
+ // Calc start and end position of the line
+ int lineno = wParam + GetScrollPos( SB_VERT );
+ int start = LineIndex( lineno );
+ int end = LineIndex( lineno + 1 );
+ SetSel( start, end - 1 );
+ return 0;
}
@@ -416,31 +416,31 @@ void CLineNumberEdit::SetWindowColour( BOOL bEnable /*= TRUE*/ ) ============================================================*/
{
- if (m_bUseEnabledSystemColours)
- {
- // re-query the system colours in case they have changed.
- m_EnabledFgCol = GetSysColor( COLOR_WINDOWTEXT );
- m_EnabledBgCol = GetSysColor( COLOR_WINDOW );
- }
+ if (m_bUseEnabledSystemColours)
+ {
+ // re-query the system colours in case they have changed.
+ m_EnabledFgCol = GetSysColor( COLOR_WINDOWTEXT );
+ m_EnabledBgCol = GetSysColor( COLOR_WINDOW );
+ }
- if (m_bUseDisabledSystemColours)
- {
- // re-query the system colours in case they have changed.
- m_DisabledFgCol = GetSysColor( COLOR_GRAYTEXT );
- m_DisabledBgCol = GetSysColor( COLOR_3DFACE );
- }
+ if (m_bUseDisabledSystemColours)
+ {
+ // re-query the system colours in case they have changed.
+ m_DisabledFgCol = GetSysColor( COLOR_GRAYTEXT );
+ m_DisabledBgCol = GetSysColor( COLOR_3DFACE );
+ }
- // change the colour based on bEnable
- if (bEnable)
- {
- m_line.SetFgColor( m_EnabledFgCol, TRUE );
- m_line.SetBgColor( m_EnabledBgCol, TRUE );
- }
- else
- {
- m_line.SetFgColor( m_DisabledFgCol, TRUE );
- m_line.SetBgColor( m_DisabledBgCol, TRUE );
- }
+ // change the colour based on bEnable
+ if (bEnable)
+ {
+ m_line.SetFgColor( m_EnabledFgCol, TRUE );
+ m_line.SetBgColor( m_EnabledBgCol, TRUE );
+ }
+ else
+ {
+ m_line.SetFgColor( m_DisabledFgCol, TRUE );
+ m_line.SetBgColor( m_DisabledBgCol, TRUE );
+ }
}
@@ -460,13 +460,13 @@ void CLineNumberEdit::UseSystemColours( BOOL bUseEnabled /*= TRUE*/, BOOL bUseDi ============================================================*/
{
- m_bUseEnabledSystemColours = bUseEnabled;
- m_bUseDisabledSystemColours = bUseDisabled;
- BOOL bEnable = TRUE;
- if (::IsWindow(m_hWnd))
- bEnable = IsWindowEnabled();
+ m_bUseEnabledSystemColours = bUseEnabled;
+ m_bUseDisabledSystemColours = bUseDisabled;
+ BOOL bEnable = TRUE;
+ if (::IsWindow(m_hWnd))
+ bEnable = IsWindowEnabled();
- SetWindowColour( bEnable );
+ SetWindowColour( bEnable );
}
@@ -491,27 +491,27 @@ void CLineNumberEdit::Prepare() ============================================================*/
{
- // Calc sizes
- int width = CalcLineNumberWidth();
- CRect rect;
- GetClientRect( &rect );
- CRect rectEdit( rect );
- rect.right = width;
- rectEdit.left = rect.right + 3;
+ // Calc sizes
+ int width = CalcLineNumberWidth();
+ CRect rect;
+ GetClientRect( &rect );
+ CRect rectEdit( rect );
+ rect.right = width;
+ rectEdit.left = rect.right + 3;
- // Setting the edit rect and
- // creating or moving child control
- SetRect( &rectEdit );
- if( m_line.m_hWnd )
- m_line.MoveWindow( 0, 0, width, rect.Height() );
- else
- m_line.Create(NULL,WS_CHILD | WS_VISIBLE | SS_NOTIFY, rect, this, 1 );
+ // Setting the edit rect and
+ // creating or moving child control
+ SetRect( &rectEdit );
+ if( m_line.m_hWnd )
+ m_line.MoveWindow( 0, 0, width, rect.Height() );
+ else
+ m_line.Create(NULL,WS_CHILD | WS_VISIBLE | SS_NOTIFY, rect, this, 1 );
- GetRect( &rectEdit );
+ GetRect( &rectEdit );
- // Update line number control data
- m_line.SetTopMargin( rectEdit.top );
- UpdateTopAndBottom();
+ // Update line number control data
+ m_line.SetTopMargin( rectEdit.top );
+ UpdateTopAndBottom();
}
@@ -533,32 +533,32 @@ int CLineNumberEdit::CalcLineNumberWidth() ============================================================*/
{
- CClientDC dc( this );
+ CClientDC dc( this );
- // If a new font is set during runtime,
- // we must explicitly select the font into
- // the CClientDC to measure it.
- CFont* font = GetFont();
- CFont* oldFont = dc.SelectObject( font );
+ // If a new font is set during runtime,
+ // we must explicitly select the font into
+ // the CClientDC to measure it.
+ CFont* font = GetFont();
+ CFont* oldFont = dc.SelectObject( font );
- m_zero=dc.GetTextExtent( _T( "0" ) );
- CString format;
+ m_zero=dc.GetTextExtent( _T( "0" ) );
+ CString format;
- // GetLimitText returns the number of bytes the edit box may contain,
- // not the max number of lines...
- //... which is the max number of lines, given one character per d:o :-)
- int maxval = GetLimitText();
- if (m_maxval > 0)
- maxval = m_maxval + m_LineDelta;
+ // GetLimitText returns the number of bytes the edit box may contain,
+ // not the max number of lines...
+ //... which is the max number of lines, given one character per d:o :-)
+ int maxval = GetLimitText();
+ if (m_maxval > 0)
+ maxval = m_maxval + m_LineDelta;
- format.Format( m_format, maxval );
- CSize fmt = dc.GetTextExtent( format );
- dc.SelectObject( oldFont );
+ format.Format( m_format, maxval );
+ CSize fmt = dc.GetTextExtent( format );
+ dc.SelectObject( oldFont );
- // Calculate the size of the line-
- // number field. We add a 5 pixel margin
- // to the max size of the format string
- return fmt.cx + 5;
+ // Calculate the size of the line-
+ // number field. We add a 5 pixel margin
+ // to the max size of the format string
+ return fmt.cx + 5;
}
@@ -576,22 +576,22 @@ void CLineNumberEdit::UpdateTopAndBottom() ============================================================*/
{
- CRect rect;
- GetClientRect( &rect );
- int maxline = GetLineCount() + m_LineDelta;
+ CRect rect;
+ GetClientRect( &rect );
+ int maxline = GetLineCount() + m_LineDelta;
- // Height for individual lines
- int lineheight = m_zero.cy;
+ // Height for individual lines
+ int lineheight = m_zero.cy;
- // Calculate the number of lines to draw
- int topline = GetFirstVisibleLine() + m_LineDelta;
- if( ( topline + ( rect.Height() / lineheight ) ) < maxline )
- maxline = topline + ( rect.Height() / lineheight );
+ // Calculate the number of lines to draw
+ int topline = GetFirstVisibleLine() + m_LineDelta;
+ if( ( topline + ( rect.Height() / lineheight ) ) < maxline )
+ maxline = topline + ( rect.Height() / lineheight );
- if ( m_maxval > 0 && maxline > m_maxval + m_LineDelta )
- maxline = m_maxval + m_LineDelta;
+ if ( m_maxval > 0 && maxline > m_maxval + m_LineDelta )
+ maxline = m_maxval + m_LineDelta;
- m_line.SetTopAndBottom( topline, maxline );
+ m_line.SetTopAndBottom( topline, maxline );
}
@@ -617,17 +617,17 @@ void CLineNumberEdit::SetMarginForegroundColor( COLORREF col, BOOL redraw, BOOL ============================================================*/
{
- m_line.SetFgColor( col, redraw );
- if (bEnabled)
- {
- m_bUseEnabledSystemColours = FALSE;
- m_EnabledFgCol = col;
- }
- else
- {
- m_bUseDisabledSystemColours = FALSE;
- m_DisabledFgCol = col;
- }
+ m_line.SetFgColor( col, redraw );
+ if (bEnabled)
+ {
+ m_bUseEnabledSystemColours = FALSE;
+ m_EnabledFgCol = col;
+ }
+ else
+ {
+ m_bUseDisabledSystemColours = FALSE;
+ m_DisabledFgCol = col;
+ }
}
@@ -650,17 +650,17 @@ void CLineNumberEdit::SetMarginBackgroundColor( COLORREF col, BOOL redraw, BOOL ============================================================*/
{
- m_line.SetBgColor( col, redraw );
- if (bEnabled)
- {
- m_bUseEnabledSystemColours = FALSE;
- m_EnabledBgCol = col;
- }
- else
- {
- m_bUseDisabledSystemColours = FALSE;
- m_DisabledBgCol = col;
- }
+ m_line.SetBgColor( col, redraw );
+ if (bEnabled)
+ {
+ m_bUseEnabledSystemColours = FALSE;
+ m_EnabledBgCol = col;
+ }
+ else
+ {
+ m_bUseDisabledSystemColours = FALSE;
+ m_DisabledBgCol = col;
+ }
}
@@ -680,10 +680,10 @@ void CLineNumberEdit::SetLineNumberFormat( CString format ) ============================================================*/
{
- m_format = format;
- m_line.SetLineNumberFormat( format );
- if( m_hWnd )
- Prepare();
+ m_format = format;
+ m_line.SetLineNumberFormat( format );
+ if( m_hWnd )
+ Prepare();
}
@@ -701,8 +701,8 @@ void CLineNumberEdit::SetLineNumberRange( UINT nMin, UINT nMax /*= 0*/ ) ============================================================*/
{
- m_LineDelta = ( int ) nMin;
- m_maxval = ( int ) nMax;
+ m_LineDelta = ( int ) nMin;
+ m_maxval = ( int ) nMax;
}
@@ -722,11 +722,11 @@ CLineNumberStatic::CLineNumberStatic() ============================================================*/
{
- m_bgcol = RGB( 255, 255, 248 );
- m_fgcol = RGB( 0, 0, 0 );
- m_format = _T( "%05i" );
- m_topline = 0;
- m_bottomline = 0;
+ m_bgcol = RGB( 255, 255, 248 );
+ m_fgcol = RGB( 0, 0, 0 );
+ m_format = _T( "%05i" );
+ m_topline = 0;
+ m_bottomline = 0;
}
CLineNumberStatic::~CLineNumberStatic()
@@ -744,9 +744,9 @@ CLineNumberStatic::~CLineNumberStatic() }
BEGIN_MESSAGE_MAP(CLineNumberStatic, CStatic)
- ON_WM_PAINT()
- ON_WM_ERASEBKGND()
- ON_WM_LBUTTONDOWN()
+ ON_WM_PAINT()
+ ON_WM_ERASEBKGND()
+ ON_WM_LBUTTONDOWN()
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
@@ -765,50 +765,50 @@ void CLineNumberStatic::OnPaint() ============================================================*/
{
- CPaintDC dcPaint( this );
+ CPaintDC dcPaint( this );
- CRect rect;
- GetClientRect( &rect );
+ CRect rect;
+ GetClientRect( &rect );
- // We double buffer the drawing -
- // preparing the memory CDC
- CDC dc;
- dc.CreateCompatibleDC( &dcPaint );
- int saved = dc.SaveDC();
+ // We double buffer the drawing -
+ // preparing the memory CDC
+ CDC dc;
+ dc.CreateCompatibleDC( &dcPaint );
+ int saved = dc.SaveDC();
- // Create GDI and select objects
- CBitmap bmp;
- CPen pen;
- bmp.CreateCompatibleBitmap( &dcPaint, rect.Width(), rect.Height() );
- pen.CreatePen( PS_SOLID, 1, m_fgcol );
- dc.SelectObject( &bmp );
- dc.SelectObject( &pen );
+ // Create GDI and select objects
+ CBitmap bmp;
+ CPen pen;
+ bmp.CreateCompatibleBitmap( &dcPaint, rect.Width(), rect.Height() );
+ pen.CreatePen( PS_SOLID, 1, m_fgcol );
+ dc.SelectObject( &bmp );
+ dc.SelectObject( &pen );
- // Painting the background
- dc.FillSolidRect( &rect, m_bgcol );
- dc.MoveTo( rect.right - 1, 0 );
- dc.LineTo( rect.right - 1, rect.bottom );
+ // Painting the background
+ dc.FillSolidRect( &rect, m_bgcol );
+ dc.MoveTo( rect.right - 1, 0 );
+ dc.LineTo( rect.right - 1, rect.bottom );
- // Setting other attributes
- dc.SetTextColor( m_fgcol );
- dc.SetBkColor( m_bgcol );
- dc.SelectObject( GetParent()->GetFont() );
+ // Setting other attributes
+ dc.SetTextColor( m_fgcol );
+ dc.SetBkColor( m_bgcol );
+ dc.SelectObject( GetParent()->GetFont() );
- // Output the line numbers
- if( m_bottomline )
- {
- int lineheight = dc.GetTextExtent( _T( "0" ) ).cy;
- for( int t = m_topline ; t < m_bottomline ; t++ )
- {
- CString output;
- output.Format( m_format, t );
- int topposition = m_topmargin + lineheight * ( t - m_topline );
- dc.TextOut( 2, topposition, output );
- }
- }
+ // Output the line numbers
+ if( m_bottomline )
+ {
+ int lineheight = dc.GetTextExtent( _T( "0" ) ).cy;
+ for( int t = m_topline ; t < m_bottomline ; t++ )
+ {
+ CString output;
+ output.Format( m_format, t );
+ int topposition = m_topmargin + lineheight * ( t - m_topline );
+ dc.TextOut( 2, topposition, output );
+ }
+ }
- dcPaint.BitBlt( 0, 0, rect. right, rect.bottom, &dc, 0, 0, SRCCOPY );
- dc.RestoreDC( saved );
+ dcPaint.BitBlt( 0, 0, rect. right, rect.bottom, &dc, 0, 0, SRCCOPY );
+ dc.RestoreDC( saved );
}
@@ -827,7 +827,7 @@ BOOL CLineNumberStatic::OnEraseBkgnd( CDC* ) ============================================================*/
{
- return TRUE;
+ return TRUE;
}
@@ -847,16 +847,16 @@ void CLineNumberStatic::OnLButtonDown( UINT nFlags, CPoint point ) ============================================================*/
{
- // Find the line clicked on
- CClientDC dc( this );
- dc.SelectObject( GetParent()->GetFont() );
- int lineheight = dc.GetTextExtent( _T( "0" ) ).cy;
- int lineno = ( int ) ( ( double ) point.y / ( double ) lineheight );
+ // Find the line clicked on
+ CClientDC dc( this );
+ dc.SelectObject( GetParent()->GetFont() );
+ int lineheight = dc.GetTextExtent( _T( "0" ) ).cy;
+ int lineno = ( int ) ( ( double ) point.y / ( double ) lineheight );
- // Select this line in the edit control
- GetParent()->SendMessage( urm_SELECTLINE, lineno );
+ // Select this line in the edit control
+ GetParent()->SendMessage( urm_SELECTLINE, lineno );
- CStatic::OnLButtonDown( nFlags, point );
+ CStatic::OnLButtonDown( nFlags, point );
}
@@ -880,9 +880,9 @@ void CLineNumberStatic::SetBgColor( COLORREF col, BOOL redraw ) ============================================================*/
{
- m_bgcol = col;
- if( m_hWnd && redraw )
- RedrawWindow();
+ m_bgcol = col;
+ if( m_hWnd && redraw )
+ RedrawWindow();
}
@@ -903,9 +903,9 @@ void CLineNumberStatic::SetFgColor( COLORREF col, BOOL redraw ) ============================================================*/
{
- m_fgcol = col;
- if( m_hWnd && redraw )
- RedrawWindow();
+ m_fgcol = col;
+ if( m_hWnd && redraw )
+ RedrawWindow();
}
@@ -925,10 +925,10 @@ void CLineNumberStatic::SetTopAndBottom( int topline, int bottomline ) ============================================================*/
{
- m_topline = topline;
- m_bottomline = bottomline;
- if( m_hWnd )
- RedrawWindow();
+ m_topline = topline;
+ m_bottomline = bottomline;
+ if( m_hWnd )
+ RedrawWindow();
}
@@ -946,7 +946,7 @@ void CLineNumberStatic::SetTopMargin( int topmargin ) ============================================================*/
{
- m_topmargin = topmargin;
+ m_topmargin = topmargin;
}
@@ -964,8 +964,8 @@ void CLineNumberStatic::SetLineNumberFormat( CString format ) ============================================================*/
{
- m_format = format;
- if( m_hWnd )
- RedrawWindow();
+ m_format = format;
+ if( m_hWnd )
+ RedrawWindow();
}
|