SEC_LISTCLASS Class

class SEC_LISTCLASS: public SEC_LISTBASE, public SECListClient

This class is used internally by the Stingray list controls and tree controls. It is not meant for external use, and is documented primarily for the inherited funtions that tree control users may need.

Defined in: slstcore.h

Class Members

Operations

virtual int GetSubItemHit( int nHitCol ) const

Returns the subitem number for a given column.

virtual COLORREF GetBkColor() const

Returns the background color of the control.

virtual COLORREF GetTextColor() const

Returns the normal text color.

virtual COLORREF GetTextBkColor() const

Returns the current normal text background color.

virtual COLORREF GetSelTextColor() const

Returns the selected text color.

virtual COLORREF GetSelTextBkColor() const

Returns the selected text background color.

virtual COLORREF GetDisabledTextColor() const

Returns the disabled text color.

virtual COLORREF GetIconBkColor() const

Returns the icon background color.

virtual COLORREF GetSelIconBkColor() const

Returns the selected icon background color.

virtual COLORREF GetToolTipBkColor() const

Returns the tooltip text background color.

virtual COLORREF GetToolTipTextColor() const

Returns the tooltip text color.

virtual CFont* GetLabelFont() const

Returns a pointer to the label font.

virtual CFont* GetHeaderFont() const

Returns a pointer to the header font.

virtual CWnd* GetNotifyWnd() const

Returns a pointer to the window that will receive control notifications.

void SetHeaderHeight(int nHeight=SECLISTCTRL_HDRHEIGHT_CLISTCTRL)

Resets the header control height. Use SECLISTCTRL_HDRHEIGHT_CLISTCTRL for CListCtrl height, SECLISTCTRL_HDRHEIGHT_SECTREECTRL for backward compatibility

virtual BOOL SetBkColor(COLORREF rgbBk)

Sets the background color of the control.

virtual BOOL SetTextColor(COLORREF rgbText)

Sets the normal text color.

virtual BOOL SetTextBkColor(COLORREF rgbTextBk)

Sets the normal text background color.

virtual BOOL SetSelTextColor(COLORREF rgbSelText)

Sets the selected text color.

virtual BOOL SetSelTextBkColor(COLORREF rgbSelTextBk)

Sets the normal text background color.

virtual BOOL SetDisabledTextColor(COLORREF rgbDisabledText)

Sets the disabled text color.

virtual BOOL SetIconBkColor(COLORREF rgbIconBk)

Sets the normal icon background color.

virtual BOOL SetSelIconBkColor(COLORREF rgbSelIconBk)

Sets the selected icon background color.

virtual BOOL SetToolTipBkColor(COLORREF rgbToolTipBk)

Sets the tooltip text background color.

virtual BOOL SetToolTipTextColor(COLORREF rgbToolTipText)

Sets the tooltip text color.

virtual BOOL SetLabelFont(CFont* pFont)

Sets the font to be used when drawing label text.

virtual BOOL SetHeaderFont(CFont* pFont)

Sets the font to be used when drawing header text.

virtual BOOL SetNotifyWnd(CWnd* pNotifyWnd)

Sets the window that will receive notifications.

virtual void EnableSysColorTracking( BOOL bEnable = TRUE )

Enables/disables system color tracking.

virtual BOOL AreSysColorsTracked()

Returns whether system colors are being tracked or not.

virtual void StartAutoScroll(UINT nInterval=300)

starts automatic scrolling during drag drop operation.

virtual void StopAutoScroll()

stops automatic scrolling after a drag drop operation.

virtual void GetInsideRect(LPRECT lpRect) const

Returns the useable client area of the control.

virtual void ReMeasureAllItems()

Marks all items as needing a remeasurement when the next WM_PAINT occurs.

virtual BOOL DeleteColumn( int nCol )

Deletes a column.

virtual BOOL DeleteColumn( const CString& strColumnHeading )

Deletes a column.

virtual BOOL DeleteAllColumns()

Deletes all columns.

virtual BOOL AddColumn( Column* pCol )

Adds a column in the list view control.

virtual BOOL AddColumn( const CString& strHeader, int fmt=LVCFMT_LEFT, int widthCol=-1, int iSubItem = -1, int iImage = -1)

Adds a column in the list view control.

virtual BOOL AddColumn( const LV_COLUMN* lvc )

Adds a column in the list view control.

virtual BOOL InsertColumn( int nCol, Column* pCol, BOOL bUpdate = TRUE)

Inserts a column in the list view control.

virtual BOOL InsertColumn( int nCol, const CString& strHeader, int nFormat=LVCFMT_LEFT, int wWidth=-1, int iSubItem = -1, int iImage = -1, BOOL bUpdate = TRUE )

Inserts a column in the list view control.

virtual BOOL InsertColumn( int nCol, const LV_COLUMN* lvc, BOOL bUpdate = TRUE )

Inserts a column in the list view control.

virtual BOOL RepositionColumn(int nColIndexOld, int nColIndexNew, BOOL bUpdate = TRUE)

Removes the column at index 'nColIndexOld' and reinserts it at index 'nColIndexNew'.

virtual BOOL GetColumn( int nCol, LV_COLUMN* lvc )

Retrieves information about a column.

virtual BOOL SetColumn( int nCol, const LV_COLUMN* lvc, BOOL bUpdate )

Sets the properties of a column.

virtual void SetColumnWidth( int nCol, int width )

Sets the width of a column in pixels.

virtual int GetColumnWidth( int nCol ) const

Returns the width of a column in pixels.

virtual void SetColumnFormat( int nCol, int fmt )

Sets the alignment of a column.

virtual int GetColumnFormat( int nCol ) const

Returns the alignment of a column.

virtual void SetColumnHeading( int nCol, const CString& strHeading )

Sets the text of a column header.

virtual CString GetColumnHeading( int nCol ) const

Returns the text of a column header.

void SetColumnImage( int nCol, int nImage )

Sets the column header image.

int GetColumnImage( int nCol ) const

Returns the column header image index.

virtual BOOL ColumnExists( const CString &strColTitle ) const

Returns whether a column with the given text exists or not.

virtual int GetColumnCount() const

Returns the number of columns.

virtual BOOL FindColumn( const CString &strColumnHeading, int& nCol, int& iSubItem ) const

Searches for a column by string title.

virtual Column* GetColumnAt(int nCol) const

Returns the Column object at a given index.

virtual UINT GetSelectedCount( ) const

Returns the number of selected items.

virtual BOOL DeselectAllItems(int iExclude = -1)

Clears the selection array.

virtual CSize GetLogicalSize(LvPaintContext* pPC=NULL)

Retrieves the logical size of the list view control.

inline CDWordArray* GetSelectionArray()

Returns a pointer to the array of selected items.

virtual int HitTest( CPoint pt, UINT* pFlags, int& nHitCol ) const

Determines what is under a given point.

virtual CEdit* GetEditControl()

Returns a pointer to the edit control used in EditLabel.

virtual BOOL GetListCtrlStyles(DWORD& dwStyle, DWORD& dwStyleEx) const

Returns the list control style and extended style.

virtual BOOL SetListCtrlStyles(DWORD dwStyle, DWORD dwStyleEx, BOOL bRedraw = TRUE)

Sets the list control styles and extended styles.

virtual DWORD GetListCtrlStyle() const

Returns the list control style.

virtual DWORD GetListCtrlStyleEx() const

Returns the list control extended style.

virtual BOOL SetListCtrlStyle(DWORD dwStyle, BOOL bRedraw = TRUE)

Sets the list control style.

virtual BOOL SetListCtrlStyleEx(DWORD dwStyleEx, BOOL bRedraw = TRUE)

Sets the list control extended style.

virtual BOOL ModifyListCtrlStyle(DWORD dwRemove, DWORD dwAdd, BOOL bRedraw = TRUE)

Adds and/or removes list control styles.

virtual BOOL ModifyListCtrlStyleEx(DWORD dwRemoveEx, DWORD dwAddEx, BOOL bRedraw = TRUE)

Adds and/or removes list control extended styles.

virtual BOOL ModifyListCtrlStyles(DWORD dwRemove, DWORD dwAdd, DWORD dwRemoveEx, DWORD dwAddEx, BOOL bRedraw = TRUE)

Adds and/or removes list control styles and extended styles.

virtual void EnableWordWrap(BOOL bEnable = TRUE)

Enables/disables wrapping of item text.

virtual void EnableToolTips(BOOL bEnable = TRUE)

Enables/disables tooltips.

virtual void EnableMultiSelect(BOOL bEnable = TRUE)

Enables/disables multiple selection.

virtual BOOL IsWordWrapEnabled() const

Returns whether word wrap is enabled or not.

virtual BOOL AreToolTipsEnabled() const

Returns whether tooltips is enabled or not.

virtual BOOL IsHeaderCtrlEnabled() const

Returns whether the column header is enabled or not.

virtual void EnableHeaderCtrl(BOOL bEnable = TRUE, BOOL bSortHeader = FALSE)

Enables/disables the column header.

virtual BOOL IsMultiSelectEnabled() const

Returns whether multiple selection is enabled or not.

virtual void EnableRedrawAfterInsert(BOOL bEnable = TRUE)

Enables/disables redrawing after every insert/delete.

virtual BOOL IsRedrawAfterInsertEnabled() const

Returns whether redraw after insert/delete is enabled or not.

virtual void RecalcScrollBars()

determines if the horizontal and/or vertical scroll bars should be shown or not.

UINT GetVisibleCount() const

Returns the number of visible items.

virtual void PickTextColors(LvPaintContext* pPC)

Sets the text color for list items.

virtual void PickTextFont(LvPaintContext* pPC)

Sets the text font for list items.