Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CTextCtrl Class Reference

#include <CtrlText.h>

List of all members.

Public Member Functions

 CTextCtrl ()
virtual ~CTextCtrl ()
void Add (int nType, LPCTSTR pszText)
void AddLine (int nType, LPCTSTR pszLine)
void Clear (BOOL bInvalidate=TRUE)
CFont * GetFont ()
virtual BOOL Create (DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID)

Protected Member Functions

void UpdateScroll (BOOL bFull=FALSE)
afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnPaint ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)

Protected Attributes

CPtrArray m_pLines
int m_nPosition
int m_nTotal
CSize m_cCharacter
CFont m_pFont
COLORREF m_crBackground
COLORREF m_crText [5]
BOOL m_bProcess
CCriticalSection m_pSection
UINT m_nScrollWheelLines


Constructor & Destructor Documentation

CTextCtrl::CTextCtrl  ) 
 

Definition at line 51 of file CtrlText.cpp.

References CShareazaApp::m_nDefaultFontSize, CShareazaApp::m_sSystemLogFont, and theApp.

CTextCtrl::~CTextCtrl  )  [virtual]
 

Definition at line 66 of file CtrlText.cpp.

References Clear().


Member Function Documentation

void CTextCtrl::Add int  nType,
LPCTSTR  pszText
 

Definition at line 80 of file CtrlText.cpp.

References AddLine(), and m_pSection.

void CTextCtrl::AddLine int  nType,
LPCTSTR  pszLine
 

Definition at line 101 of file CtrlText.cpp.

References LINE_BUFFER_BLOCK, LINE_BUFFER_LIMIT, m_bProcess, m_pLines, and m_pSection.

Referenced by CSystemWnd::Add(), Add(), and CSystemWnd::ShowStartupText().

void CTextCtrl::Clear BOOL  bInvalidate = TRUE  ) 
 

Definition at line 119 of file CtrlText.cpp.

References m_nPosition, m_nTotal, m_pLines, m_pSection, and UpdateScroll().

Referenced by CSystemWnd::Clear(), CSystemWnd::OnSkinChange(), and ~CTextCtrl().

BOOL CTextCtrl::Create DWORD  dwStyle,
const RECT &  rect,
CWnd *  pParentWnd,
UINT  nID
[virtual]
 

Definition at line 74 of file CtrlText.cpp.

References NULL.

Referenced by CSystemWnd::OnCreate().

CFont * CTextCtrl::GetFont  ) 
 

Definition at line 165 of file CtrlText.cpp.

References m_pFont.

int CTextCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 173 of file CtrlText.cpp.

References m_bProcess, m_nPosition, m_nScrollWheelLines, and m_nTotal.

BOOL CTextCtrl::OnEraseBkgnd CDC *  pDC  )  [protected]
 

Definition at line 230 of file CtrlText.cpp.

void CTextCtrl::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 300 of file CtrlText.cpp.

BOOL CTextCtrl::OnMouseWheel UINT  nFlags,
short  zDelta,
CPoint  pt
[protected]
 

Definition at line 305 of file CtrlText.cpp.

References m_nPosition, m_nScrollWheelLines, m_nTotal, m_pSection, and UpdateScroll().

void CTextCtrl::OnPaint  )  [protected]
 

Definition at line 235 of file CtrlText.cpp.

References m_bProcess, m_cCharacter, m_crBackground, m_crText, CTextLine::m_nLine, m_nPosition, m_nTotal, CTextLine::m_nType, m_pFont, m_pLines, m_pSection, CTextLine::Paint(), CTextLine::Process(), and UpdateScroll().

void CTextCtrl::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Definition at line 294 of file CtrlText.cpp.

References m_bProcess.

void CTextCtrl::OnVScroll UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar
[protected]
 

Definition at line 187 of file CtrlText.cpp.

References m_nPosition, m_nTotal, m_pSection, and UpdateScroll().

void CTextCtrl::UpdateScroll BOOL  bFull = FALSE  )  [protected]
 

Definition at line 138 of file CtrlText.cpp.

References m_cCharacter, m_nPosition, and m_nTotal.

Referenced by Clear(), OnMouseWheel(), OnPaint(), and OnVScroll().


Member Data Documentation

BOOL CTextCtrl::m_bProcess [protected]
 

Definition at line 44 of file CtrlText.h.

Referenced by AddLine(), OnCreate(), OnPaint(), and OnSize().

CSize CTextCtrl::m_cCharacter [protected]
 

Definition at line 40 of file CtrlText.h.

Referenced by OnPaint(), and UpdateScroll().

COLORREF CTextCtrl::m_crBackground [protected]
 

Definition at line 42 of file CtrlText.h.

Referenced by OnPaint().

COLORREF CTextCtrl::m_crText[5] [protected]
 

Definition at line 43 of file CtrlText.h.

Referenced by OnPaint().

int CTextCtrl::m_nPosition [protected]
 

Definition at line 38 of file CtrlText.h.

Referenced by Clear(), OnCreate(), OnMouseWheel(), OnPaint(), OnVScroll(), and UpdateScroll().

UINT CTextCtrl::m_nScrollWheelLines [protected]
 

Definition at line 46 of file CtrlText.h.

Referenced by OnCreate(), and OnMouseWheel().

int CTextCtrl::m_nTotal [protected]
 

Definition at line 39 of file CtrlText.h.

Referenced by Clear(), OnCreate(), OnMouseWheel(), OnPaint(), OnVScroll(), and UpdateScroll().

CFont CTextCtrl::m_pFont [protected]
 

Definition at line 41 of file CtrlText.h.

Referenced by GetFont(), and OnPaint().

CPtrArray CTextCtrl::m_pLines [protected]
 

Definition at line 37 of file CtrlText.h.

Referenced by AddLine(), Clear(), and OnPaint().

CCriticalSection CTextCtrl::m_pSection [protected]
 

Definition at line 45 of file CtrlText.h.

Referenced by Add(), AddLine(), Clear(), OnMouseWheel(), OnPaint(), and OnVScroll().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:13 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2