GUIBASE::RCAdvancedListCtrl Class Reference

Inherited by GUIBASE::TRCAdvancedListCtrl< TEntry >.

Inheritance diagram for GUIBASE::RCAdvancedListCtrl:

Inheritance graph
[legend]
Collaboration diagram for GUIBASE::RCAdvancedListCtrl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RCAdvancedListCtrl (TInt nColumnCount)
virtual BOOL CreateEx (DWORD dwExStyle, DWORD dwStyle, const RECT &Rect, CWnd *pParentWnd, UINT nID)
void SetHeader (TInt nColIndex, const RCString &sName, TLong nWidth)
void FitColumns ()
void FitColumnWidth (TInt nColIndex, TBool bForceSet=FALSE)
void FitWidth (TSInt nMaxWidth)
void FitHeight (TSInt nMaxHeight)
void AddEntry (TSInt nPos, LPARAM lParam)
void ReplaceEntry (TSInt nPos, LPARAM lParam)
void RemoveEntry (TSInt nPos)
virtual void ClearEntries ()
void SetSettings (const RSSettings &Settings)
const RSSettings & GetSettings () const
TSLong GetRowIndex (LPARAM lParam)
TSInt GetSelection () const
void SetSelection (TSInt nSelection)
void SetBkColor (COLORREF nColor0, COLORREF nColor1)

Static Public Member Functions

template<class T>
static TSInt Compare (const T &a, const T &b)

Protected Member Functions

virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
virtual bool IsDraw ()
virtual bool OnDraw (CDC *pDC)
virtual bool IsNotifyItemDraw ()
virtual bool IsNotifySubItemDraw (int nItem, UINT nState, LPARAM lParam)
virtual COLORREF TextColorForSubItem (int nItem, int nSubItem, UINT nState, LPARAM lParam)
virtual COLORREF BkColorForSubItem (int nItem, int nSubItem, UINT nState, LPARAM lParam)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnDestroy ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnLButtonDown (UINT nFlags, CPoint Point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint Point)
afx_msg void OnEndtrack (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnHeaderItemClick (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDeviderDoubleClicked (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg BOOL OnToolTipNotify (UINT nId, NMHDR *pNMHDR, LRESULT *pResult)
virtual int OnToolHitTest (CPoint point, TOOLINFO *pTI) const
virtual TBool CanSort () const
virtual TSInt Compare (LPARAM lParam1, LPARAM lParam2) const
virtual RCString GetEntryString (LPARAM lParam, TInt nColumn) const
virtual TLong GetEntryCount () const
void ReInit ()
void ShowColumn (TLong nColIndex)
void SortByColumn (TSLong nColIndex)
void RefreshColumn (TLong nColIndex)
CMenu * CreateContextMenu (TSLong nColIndex)

Static Protected Member Functions

static int CALLBACK CompareStatic (LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)

Protected Attributes

const TInt m_nColumnCount
CImageList m_HdrImages
TBool m_bIsDividerDblClicked
RSSettings m_Settings
TSInt m_nSelection
COLORREF m_nBkColor0
COLORREF m_nBkColor1
TChar ** m_saNameList
TAnsiChar * m_caAnsiToolTip
TUnicodeChar * m_caWideToolTip
TBool m_bInitializedToolTip

Static Protected Attributes

static const RCString SORT_ASC_TXT
static const RCString SORT_DESC_TXT
static const TInt SORT_ASC_ID = -3
static const TInt SORT_DESC_ID = -4
static const TInt TOGGLE_ID_OFFSET = 1
static const TInt MAX_NAME_LEN = 64

Classes

struct  RSSettings

Detailed Description

Author:
Patrik Stellmann


Member Data Documentation

const RCString RCAdvancedListCtrl::SORT_ASC_TXT [static, protected]
 

Initial value:

    _T("Sort &Ascending")

const RCString RCAdvancedListCtrl::SORT_DESC_TXT [static, protected]
 

Initial value:

    _T("Sort &Descending")


The documentation for this class was generated from the following files:
Generated on Thu Feb 16 12:47:10 2006 for Simulator Bob by  doxygen 1.4.6-NO