CGridListCtrlEx
|
CGridListCtrlEx extends the CListCtrl with several features. More...
Public Member Functions | |
virtual | ~CGridListCtrlEx () |
Destructor. | |
LRESULT | EnableVisualStyles (bool bValue) |
Activate visual style for the list control (Vista Theme) More... | |
bool | UsingVisualStyle () const |
virtual CFont * | GetCellFont () |
Retrieves the font used to draw cells in the list control. More... | |
virtual void | SetCellMargin (double margin) |
Takes the current font and increases the font with the given margin multiplier. More... | |
void | SetEmptyMarkupText (const CString &strText) |
Update the markup text displayed when the list control is empty. More... | |
void | SetTooltipMaxWidth (int width) |
int | GetTooltipMaxWidth () const |
int | GetFocusRow () const |
Retrieve row with the LVIS_FOCUSED state flag set. More... | |
void | SetFocusRow (int nRow) |
Sets LVIS_FOCUSED state flag for the specified row. More... | |
bool | IsRowSelected (int nRow) const |
Checks if the LVIS_SELECTED state flag set for the specified row. More... | |
BOOL | SelectRow (int nRow, bool bSelect) |
Sets the LVIS_SELECTED state flag for the specified row. More... | |
virtual CGridRowTrait * | GetRowTrait (int nRow) |
Retrieves the row trait for the specified row. More... | |
virtual void | SetDefaultRowTrait (CGridRowTrait *pRowTrait) |
Sets the default row trait used by default for drawing rows. More... | |
const CHeaderCtrl * | GetHeaderCtrl () const |
Retrieves the header control of a list control. More... | |
CHeaderCtrl * | GetHeaderCtrl () |
int | GetColumnCount () const |
Retrieves the number of columns from the header control. More... | |
int | GetColumnData (int nCol) const |
The column version of GetItemData(), one can specify an unique identifier when using InsertColumn() More... | |
int | GetColumnOrder (int nCol) const |
Get column position in the CHeaderCtrl's display order array. More... | |
CString | GetColumnHeading (int nCol) const |
Retrieve column title of a column in the list control NOTE! It will only return the first 255 characters of the header. More... | |
virtual BOOL | EnsureColumnVisible (int nCol, bool bPartialOK) |
Scrolls the view, so the column becomes visible. More... | |
virtual BOOL | SetColumnWidthAuto (int nCol=-1, bool bIncludeHeader=false) |
Resizes the width of a column according the contents of the cells below. More... | |
virtual void | SetSortArrow (int nCol, bool bAscending) |
Puts a sort-icon in the column header of the specified column. More... | |
virtual BOOL | ShowColumn (int nCol, bool bShow) |
Changes the visible state of column. More... | |
virtual bool | IsColumnVisible (int nCol) |
Retrieves the column visible state from the column trait. More... | |
virtual bool | IsColumnResizable (int nCol) |
Checks if a column is allowed to be resized. More... | |
virtual bool | IsColumnAlwaysVisible (int nCol) |
Checks if a column is fixed to be always visible. More... | |
virtual bool | IsColumnAlwaysHidden (int nCol) |
Checks if a column is fixed to be always hidden. More... | |
virtual int | GetFirstVisibleColumn () |
Retrieves the column index of the first visible column. More... | |
virtual int | InsertHiddenLabelColumn () |
Inserts the label column (first column) with invisible state The label column behaves differently from the rest of the columns, and to get the uniform look, then it should be hidden away. More... | |
virtual int | InsertColumnTrait (int nCol, const CString &strColumnHeading, int nFormat=LVCFMT_LEFT, int nWidth=-1, int nSubItem=-1, CGridColumnTrait *pTrait=NULL) |
Inserts a new column in the list control, and gives the option to customize the column using a trait. More... | |
virtual CGridColumnTrait * | GetColumnTrait (int nCol) |
Retrieves the column trait for the entire column. More... | |
virtual int | GetColumnTraitSize () const |
Retrieves the number of column traits registered. More... | |
UINT | CellHitTest (const CPoint &pt, int &nRow, int &nCol) const |
Replicates the SubItemHitTest() but in a const version. More... | |
BOOL | GetCellRect (int nRow, int nCol, int nCode, CRect &rect) |
Improved version of GetSubItemRect(). More... | |
int | GetFocusCell () const |
virtual void | SetFocusCell (int nCol, bool bRedraw=false) |
Changes the focus cell. More... | |
virtual CWnd * | EditCell (int nRow, int nCol) |
Starts the edit of a cell and sends a message to the parent window. More... | |
virtual CWnd * | EditCell (int nRow, int nCol, CPoint pt) |
Starts the edit of a cell and sends a message to the parent window. More... | |
bool | IsCellEditorOpen () const |
Checks if the cell value editor is open for a cell. More... | |
bool | IsCellCallback (int nRow, int nCol) const |
Checks if the current cell is using callback to retrieve its text value. More... | |
int | GetCellImage (int nRow, int nCol) const |
Retrieves the icon index of the specified cell. More... | |
BOOL | SetCellImage (int nRow, int nCol, int nImageId) |
Sets the icon of the specified cell. More... | |
virtual CGridColumnTrait * | GetCellColumnTrait (int nRow, int nCol) |
Retrieves the column trait of a specified cell. More... | |
virtual void | SetupColumnConfig (CViewConfigSectionProfiles *pColumnConfig, bool bConfigOwner=true) |
Sets the interface for handling state persistence for the list control. More... | |
virtual void | LoadState (CViewConfigSection &config) |
Loads and applies the column configuration for the list control. More... | |
virtual void | SaveState (CViewConfigSection &config) |
Saves the column configuration of the list control. More... | |
virtual void | LoadColumnState (int nConfigCol, int nOwnerCol, CViewConfigSection &config) |
Loads the column state of a single column. More... | |
virtual void | SaveColumnState (int nConfigCol, int nOwnerCol, CViewConfigSection &config) |
Saves the column state of a single column. More... | |
virtual bool | HasColumnEditor (int nCol, CString &strTitle) |
Is there a column configuration editor available for this column ? More... | |
virtual void | OpenColumnEditor (int nCol) |
Open the column configuration editor for the column (If one available) More... | |
virtual bool | HasColumnPicker (CString &strTitle) |
Is there a column picker available that can add / remove columns. More... | |
virtual void | OpenColumnPicker () |
Open the column picker for the list control. | |
virtual bool | HasColumnDefaultState (CString &strTitle) |
Has the ability to reset the column configuration to its default configuration. More... | |
virtual void | ResetColumnDefaultState () |
Reset the column configuration to its default configuration. | |
virtual CString | HasColumnProfiles (CSimpleArray< CString > &profiles, CString &strTitle) |
Can switch between multiple column configurations. More... | |
virtual void | SwichColumnProfile (const CString &strProfile) |
Switch to different column configurations profile. More... | |
virtual void | OnSaveStateColumnPick () |
Called after a column has been added / removed. | |
virtual void | OnSaveStateColumnResize () |
Called after a column has been resized. | |
virtual void | OnSaveStateKillFocus () |
Called when the list control looses focus to another control. | |
virtual void | OnDisplayCellItem (LVITEM &lvi) |
Override this method to provide text string and image index when drawing cells. More... | |
virtual bool | OnDisplayCellText (int nRow, int nCol, CString &strResult) |
Override this method to provide text string when drawing cells Only called when using LPSTR_TEXTCALLBACK with CListCtrl::SetItemText() More... | |
virtual bool | OnDisplayCellImage (int nRow, int nCol, int &nImageId) |
Override this method to provide icon index when drawing cells Only called when using I_IMAGECALLBACK with SetCellImage() More... | |
virtual bool | OnDisplayCellTooltip (const CPoint &point) const |
Override this method if wanting to specify whether a tooltip is available. More... | |
virtual bool | OnDisplayColumnTooltip (int nCol, CString &strResult) const |
Override this method to display a custom tooltip text when holding the mouse over a column header. More... | |
virtual bool | OnDisplayCellTooltip (int nRow, int nCol, CString &strResult) |
Override this method to display a custom tooltip text when holding the mouse over a cell. More... | |
virtual bool | OnDisplayCellColor (NMLVCUSTOMDRAW *pLVCD) |
Override this method to change the colors used for drawing a cell. More... | |
virtual bool | OnDisplayCellColor (int nRow, int nCol, COLORREF &textColor, COLORREF &backColor) |
Override this method to change the colors used for drawing a cell. More... | |
virtual bool | OnDisplayCellFont (NMLVCUSTOMDRAW *pLVCD, LOGFONT &font) |
Override this method to change the font used for drawing a cell. More... | |
virtual bool | OnDisplayCellFont (int nRow, int nCol, LOGFONT &font) |
Override this method to change the font used for drawing a cell. More... | |
virtual bool | OnDisplayRowColor (int nRow, COLORREF &textColor, COLORREF &backColor) |
Override this method to change the color used for drawing a row. More... | |
virtual bool | OnDisplayRowFont (int nRow, LOGFONT &font) |
Override this method to change the font used for drawing a row. More... | |
virtual void | OnDisplayDragOverRow (int nRow) |
Override this method to react to mouse over event during drag drop. More... | |
virtual bool | OnDisplayToClipboard (CString &strResult, bool includeHeader=true) |
Override this method to control what is placed in the global clipboard. More... | |
virtual bool | OnDisplayToClipboard (int nRow, CString &strResult) |
Override this method to control what to place in the clipboard for a single row. More... | |
virtual bool | OnDisplayToClipboard (int nRow, int nCol, CString &strResult) |
Override this method to control what to place in the clipboard for a single cell. More... | |
virtual bool | OnDisplayToDragDrop (CString &strResult) |
Override this method to control what data is selected for drag drop operation. More... | |
virtual bool | OnOwnerDataDisplayCheckbox (int nRow) |
Override this method to display checkbox state for LVS_OWNERDATA (virtual list). More... | |
virtual void | OnOwnerDataToggleCheckBox (int nRow, bool bChecked) |
Override this method to react to check box being toggled for LVS_OWNERDATA (virtual list). More... | |
virtual int | OnKeyboardSearch (int nCol, int nStartRow, const CString &strSearch) |
Override this method to optimize the keyboard search for LVS_OWNERDATA (virtual list) More... | |
Static Public Member Functions | |
static bool | CheckOSVersion (WORD requestOS) |
Checks if the current OS version against the requested OS version. More... | |
Protected Member Functions | |
virtual void | InsertColumnTrait (int nCol, CGridColumnTrait *pTrait) |
Internal maintenance function for the column trait container. More... | |
virtual void | DeleteColumnTrait (int nCol) |
Internal maintenance function for the column trait container. More... | |
int | InternalColumnPicker (CMenu &menu, UINT offset) |
Internal method to add all available columns to the context menu. More... | |
int | InternalColumnProfileSwitcher (CMenu &menu, UINT offset, CSimpleArray< CString > &profiles) |
Internal method to add all available column profiles to the context menu. More... | |
virtual void | MoveFocusCell (bool bMoveRight) |
Shifts the cell focus left or right in the same row. More... | |
virtual bool | SortColumn (int nCol, bool bAscending) |
Changes the row sorting in regard to the specified column. More... | |
virtual BOOL | RegisterDropTarget () |
Registers the CListCtrl as a valid OLE drag drop target. More... | |
virtual DROPEFFECT | DoDragDrop (COleDataSource &oleDataSource, COleDropSource *pDropSource=NULL, DWORD dropEffects=DROPEFFECT_COPY|DROPEFFECT_MOVE|DROPEFFECT_LINK, LPCRECT lpRectStartDrag=NULL) |
Takes the contents of the selected rows, and starts a drag-drop operation. More... | |
virtual DROPEFFECT | OnDragEnter (COleDataObject *pDataObject, DWORD dwKeyState, CPoint point) |
Called by the framework when the cursor is first dragged into the window. More... | |
virtual DROPEFFECT | OnDragOver (COleDataObject *pDataObject, DWORD dwKeyState, CPoint point) |
Called by the framework when the cursor is dragged over the window. More... | |
virtual SCODE | OnDragGiveFeedback (DROPEFFECT dropEffect) |
Called by the framework during drag-drop operation, and allows one to give visual feedback to the end user during a drag-and-drop operation. More... | |
virtual void | OnDragLeave () |
Called by the framework when the cursor leaves the window while a dragging operation is in effect. | |
virtual BOOL | OnDrop (COleDataObject *pDataObject, DROPEFFECT dropEffect, CPoint point) |
Called by the framework when a drop operation is to occur. More... | |
virtual BOOL | OnDropSelf (COleDataObject *pDataObject, DROPEFFECT dropEffect, CPoint point) |
Called by the framework when a drop operation is to occur, where the origin is the CGridListCtrlEx itself. More... | |
virtual BOOL | OnDropExternal (COleDataObject *pDataObject, DROPEFFECT dropEffect, CPoint point) |
Called by the framework when a drop operation is to occur, where the origin is an external source. More... | |
virtual bool | MoveSelectedRows (int nDropRow) |
Inserts the selected rows before the specified row. More... | |
virtual void | OnCustomDrawRow (int nRow, NMLVCUSTOMDRAW *pLVCD, LRESULT *pResult) |
Performs custom drawing of the CListCtrl using CGridRowTrait. More... | |
virtual void | OnCustomDrawCell (int nRow, int nCol, NMLVCUSTOMDRAW *pLVCD, LRESULT *pResult) |
Performs custom drawing of the CListCtrl using CGridColumnTrait. More... | |
virtual int | OnClickEditStart (int nRow, int nCol, CPoint pt, bool bDblClick) |
Override this method to control whether cell edit should be started when clicked with the mouse. More... | |
virtual CWnd * | OnEditBegin (int nRow, int nCol) |
Override this method to control whether cell editing is allowed for a cell. More... | |
virtual CWnd * | OnEditBegin (int nRow, int nCol, CPoint pt) |
Override this method to control whether cell editing is allowed for a cell. More... | |
virtual bool | OnEditComplete (int nRow, int nCol, CWnd *pEditor, LV_DISPINFO *pLVDI) |
Override this method to validate the new value after a cell edit. More... | |
virtual void | OnContextMenuGrid (CWnd *pWnd, CPoint point) |
Override this method to change the context menu when activating context menu in client area with no rows. More... | |
virtual void | OnContextMenuHeader (CWnd *pWnd, CPoint point, int nCol) |
Override this method to change the context menu when activating context menu for the column headers. More... | |
virtual void | OnContextMenuKeyboard (CWnd *pWnd, CPoint point) |
Override this method to change the context menu when using the keyboard shortcut SHIFT+F10. More... | |
virtual void | OnContextMenuCell (CWnd *pWnd, CPoint point, int nRow, int nCol) |
Override this method to change the context menu when activating context menu for a single cell. More... | |
virtual void | OnCreateStyle () |
Configures the initial style of the list control when the it is created. | |
virtual void | OnCopyToClipboard () |
Copies the contents of the selected rows into the global clipboard. | |
virtual void | PreSubclassWindow () |
Normally used for subclassing controls, but here used to configure initial style when list control is created. More... | |
virtual int | OnToolHitTest (CPoint point, TOOLINFO *pTI) const |
Called by the MFC framework during mouse over to detemine whether a point is in the bounding rectangle of the specified tool. More... | |
virtual afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
WM_CREATE message handler. More... | |
virtual afx_msg LRESULT | OnDeleteColumn (WPARAM wParam, LPARAM lParam) |
LVM_DELETECOLUMN message handler to ensure the column trait container is updated when columns are removed. More... | |
virtual afx_msg LRESULT | OnInsertColumn (WPARAM wParam, LPARAM lParam) |
LVM_INSERTCOLUMN message handler to ensure the column trait container is updated when columns are inserted. More... | |
virtual afx_msg BOOL | OnItemClick (NMHDR *pNMHDR, LRESULT *pResult) |
NM_CLICK message handler called when left-clicking in a cell. More... | |
virtual afx_msg BOOL | OnItemDblClick (NMHDR *pNMHDR, LRESULT *pResult) |
NM_DBLCLK message handler called when double-clicking in a cell. More... | |
virtual afx_msg BOOL | OnGetDispInfo (NMHDR *pNMHDR, LRESULT *pResult) |
LVN_GETDISPINFO message handler, which is called when details are needed for an item that specifies callback. More... | |
virtual afx_msg void | OnChar (UINT nChar, UINT nRepCnt, UINT nFlags) |
WM_CHAR message handler for performing keyboard search with subitems. More... | |
virtual afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
WM_KEYDOWN message handler for performing keyboard navigation. More... | |
virtual afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
WM_LBUTTONDOWN message handler called when the user presses the left mouse button while the cursor is in the client area of a window. More... | |
virtual afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
WM_RBUTTONDOWN message handler called when the user presses the right mouse button while the cursor is in the client area of a window. More... | |
virtual afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
The WM_LBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is in the client area of a window Used to flip the checkbox image even when double-clicking. More... | |
virtual afx_msg void | OnCustomDraw (NMHDR *pNMHDR, LRESULT *pResult) |
Performs custom drawing of the CListCtrl. More... | |
virtual afx_msg LRESULT | OnSetColumnWidth (WPARAM wParam, LPARAM lParam) |
LVM_SETCOLUMNWIDTH message handler called when wanting to resize a column. More... | |
virtual afx_msg BOOL | OnHeaderDividerDblClick (UINT, NMHDR *pNMHDR, LRESULT *pResult) |
HDN_DIVIDERDBLCLICK message handler called when double clicking the divider in the columns of the CHeaderCtrl. More... | |
virtual afx_msg BOOL | OnHeaderBeginResize (UINT, NMHDR *pNmhdr, LRESULT *pResult) |
HDN_BEGINTRACK message handler called when resizing columns. More... | |
virtual afx_msg BOOL | OnHeaderBeginDrag (UINT, NMHDR *pNMHDR, LRESULT *pResult) |
HDN_BEGINDRAG message handler called when about to move a column to a new position. More... | |
virtual afx_msg BOOL | OnHeaderEndResize (UINT, NMHDR *pNMHDR, LRESULT *pResult) |
HDN_ENDTRACK message handler called after column resize. More... | |
virtual afx_msg BOOL | OnHeaderItemChanging (UINT, NMHDR *pNMHDR, LRESULT *pResult) |
HDN_ITEMCHANGING message handler called during column resize. More... | |
virtual afx_msg BOOL | OnHeaderEndDrag (UINT, NMHDR *pNmhdr, LRESULT *pResult) |
HDN_ENDDRAG message handler called after a column have been dragged, but before the column order has been updated. More... | |
virtual afx_msg BOOL | OnHeaderClick (NMHDR *pNMHDR, LRESULT *pResult) |
LVN_COLUMNCLICK message handler called when clicking a column header. More... | |
virtual afx_msg BOOL | OnToolNeedText (UINT, NMHDR *pNMHDR, LRESULT *pResult) |
TTN_NEEDTEXT message handler called when the tooltip timer fires. More... | |
virtual afx_msg BOOL | OnBeginLabelEdit (NMHDR *pNMHDR, LRESULT *pResult) |
LVN_BEGINLABELEDIT message handler called when start editing a cell. More... | |
virtual afx_msg BOOL | OnEndLabelEdit (NMHDR *pNMHDR, LRESULT *pResult) |
LVN_ENDLABELEDIT message handler called when completed a cell edit. More... | |
virtual afx_msg BOOL | OnOwnerDataFindItem (NMHDR *pNMHDR, LRESULT *pResult) |
LVN_ODFINDITEM message handler for performing keyboard search when LVS_OWNERDATA (virtual list) More... | |
virtual afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
WM_HSCROLL message handler called when scrolling in the list control. More... | |
virtual afx_msg void | OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
WM_VSCROLL message handler called when scrolling in the list control. More... | |
virtual afx_msg void | OnContextMenu (CWnd *, CPoint point) |
WM_CONTEXTMENU message handler to show popup menu when mouse right click is used (or SHIFT+F10 on the keyboard) More... | |
virtual afx_msg void | OnDestroy () |
Notify that the window has been destroyed. | |
virtual afx_msg void | OnPaint () |
WM_PAINT message handler called when needing to redraw list control. More... | |
virtual afx_msg void | OnSetFocus (CWnd *pOldWnd) |
WM_SETFOCUS message handler called when list control is receiving focus from other control. More... | |
virtual afx_msg void | OnKillFocus (CWnd *pNewWnd) |
WM_KILLFOCUS message handler called when list control is loosing focus to other control. More... | |
virtual afx_msg LRESULT | OnCopy (WPARAM wParam, LPARAM lParam) |
WM_COPY message handler. More... | |
virtual afx_msg LRESULT | OnSetFont (WPARAM wParam, LPARAM lParam) |
WM_SETFONT message handler. More... | |
virtual afx_msg BOOL | OnBeginDrag (NMHDR *pNMHDR, LRESULT *pResult) |
LVN_BEGINDRAG message handler called when performing left-click drag. More... | |
virtual afx_msg BOOL | OnItemChanged (NMHDR *pNMHDR, LRESULT *pResult) |
LVN_ITEMCHANGED message handler called when a row changes state When using LVS_OWNERDATA style, this only gets called for single item state change. More... | |
DECLARE_MESSAGE_MAP () | |
Protected Attributes | |
CSimpleArray< CGridColumnTrait * > | m_ColumnTraits |
Column traits registered (One for each column) | |
CViewConfigSectionProfiles * | m_pColumnConfig |
Column state persistence. | |
bool | m_bConfigOwner |
Column state persistence object is freed by destructor. | |
CGridRowTrait * | m_pDefaultRowTrait |
Default row trait used for special row drawing. | |
int | m_FocusCell |
Column currently having focus (-1 means entire row) | |
CString | m_LastSearchString |
Last search criteria for keyboard search. | |
CTime | m_LastSearchTime |
Time of last search attempt for keyboard search. | |
int | m_LastSearchCell |
Last column used in keyboard search. | |
int | m_LastSearchRow |
Last row matched in keyboard search. | |
int | m_RepeatSearchCount |
How many times the same search have been repeated (same key pressed) | |
int | m_SortCol |
Rows are sorted according to this column. | |
bool | m_Ascending |
Rows are sorted ascending / descending. | |
CWnd * | m_pEditor |
Cell value editor currently in use. | |
bool | m_UsingVisualStyle |
Vista Style has been enabled (alpha blend) | |
int | m_TooltipMaxWidth |
Whether tooltips should be split in multiple lines. | |
CFont | m_GridFont |
Original font of the the list control. | |
CFont | m_CellFont |
Current font to draw rows. | |
double | m_Margin |
Current margin between original font and cell font. | |
CString | m_EmptyMarkupText |
Text to display when list control is empty. | |
bool | m_InvalidateMarkupText |
Ensure that the empty markup text is cleared properly. | |
COleDropTargetWnd< CGridListCtrlEx > * | m_pOleDropTarget |
Maintains OLE drag drop target. | |
Friends | |
class | COleDropTargetWnd< CGridListCtrlEx > |
class | COleDropSourceWnd< CGridListCtrlEx > |
CGridListCtrlEx extends the CListCtrl with several features.
UINT CGridListCtrlEx::CellHitTest | ( | const CPoint & | pt, |
int & | nRow, | ||
int & | nCol | ||
) | const |
Replicates the SubItemHitTest() but in a const version.
Finds the cell below the given mouse cursor position.
pt | The position to hit test, in client coordinates. |
nRow | The index of the row (Returns -1 if no row) |
nCol | The index of the column (Returns -1 if no column) |
|
static |
Checks if the current OS version against the requested OS version.
requestOS | The full version number of the OS required (Ex 0x0600) |
|
protectedvirtual |
Internal maintenance function for the column trait container.
nCol | The index of the column just deleted |
|
protectedvirtual |
Takes the contents of the selected rows, and starts a drag-drop operation.
oleDataSource | Cache for placing the data selected for drag-drop operation |
dropEffects | Drag-and-drop operations that are allowed on this data source |
lpRectStartDrag | Pointer to the rectangle that defines where the drag actually starts |
pDropSource | Points to a drop source. |
|
virtual |
Starts the edit of a cell and sends a message to the parent window.
nRow | The index of the row |
nCol | The index of the column |
|
virtual |
Starts the edit of a cell and sends a message to the parent window.
nRow | The index of the row |
nCol | The index of the column |
pt | The position clicked, in client coordinates. |
LRESULT CGridListCtrlEx::EnableVisualStyles | ( | bool | bValue | ) |
Activate visual style for the list control (Vista Theme)
bValue | Specifies whether the visual styles should be enabled or not |
|
virtual |
Scrolls the view, so the column becomes visible.
http://www.codeguru.com/cpp/controls/listview/columns/article.php/c931/
nCol | The index of the column |
bPartialOK | Is partially visible good enough ? |
|
virtual |
Retrieves the column trait of a specified cell.
Makes it possible to override the column trait of a single cell
nRow | The index of the row |
nCol | The index of the column |
|
virtual |
Retrieves the font used to draw cells in the list control.
int CGridListCtrlEx::GetCellImage | ( | int | nRow, |
int | nCol | ||
) | const |
Retrieves the icon index of the specified cell.
nRow | The index of the row |
nCol | The index of the column |
BOOL CGridListCtrlEx::GetCellRect | ( | int | nRow, |
int | nCol, | ||
int | nCode, | ||
CRect & | rect | ||
) |
Improved version of GetSubItemRect().
nRow | The index of the row |
nCol | The index of the column |
nCode | Determines the portion of the bounding rectangle (of the list view subitem) to be retrieved. |
rect | Reference to a CRect object that contains the coordinates of the cell's bounding rectangle. |
int CGridListCtrlEx::GetColumnCount | ( | ) | const |
Retrieves the number of columns from the header control.
int CGridListCtrlEx::GetColumnData | ( | int | nCol | ) | const |
The column version of GetItemData(), one can specify an unique identifier when using InsertColumn()
nCol | Index of the column |
CString CGridListCtrlEx::GetColumnHeading | ( | int | nCol | ) | const |
Retrieve column title of a column in the list control NOTE! It will only return the first 255 characters of the header.
nCol | Index of the column |
int CGridListCtrlEx::GetColumnOrder | ( | int | nCol | ) | const |
Get column position in the CHeaderCtrl's display order array.
nCol | Index of the column |
|
virtual |
Retrieves the column trait for the entire column.
nCol | The index of the column |
|
virtual |
Retrieves the number of column traits registered.
|
virtual |
Retrieves the column index of the first visible column.
int CGridListCtrlEx::GetFocusRow | ( | ) | const |
Retrieve row with the LVIS_FOCUSED state flag set.
const CHeaderCtrl * CGridListCtrlEx::GetHeaderCtrl | ( | ) | const |
Retrieves the header control of a list control.
|
virtual |
Retrieves the row trait for the specified row.
Override this to provide a custom row trait for a certain row
nRow | The index of the row |
|
virtual |
Has the ability to reset the column configuration to its default configuration.
strTitle | Title to show in the context menu when right-clicking the column |
|
virtual |
Is there a column configuration editor available for this column ?
nCol | The index of the column |
strTitle | Title to show in the context menu when right-clicking the column |
|
virtual |
Is there a column picker available that can add / remove columns.
strTitle | Title to show in the context menu when right-clicking the column |
|
virtual |
Can switch between multiple column configurations.
profiles | List of available column profiles |
strTitle | Title to show in the context menu when right-clicking the column |
|
virtual |
Inserts a new column in the list control, and gives the option to customize the column using a trait.
nCol | Index of the new column |
strColumnHeading | Title of the new column |
nFormat | Text alignment of the new column |
nWidth | Width of the new column |
nSubItem | Unique identifier used to recognize the column independent of index |
pTrait | Column trait interface for the new column |
|
protectedvirtual |
Internal maintenance function for the column trait container.
nCol | The index of the new column to get a column trait |
pTrait | The column trait of the new column |
|
virtual |
Inserts the label column (first column) with invisible state The label column behaves differently from the rest of the columns, and to get the uniform look, then it should be hidden away.
|
protected |
Internal method to add all available columns to the context menu.
menu | The popup context menu |
offset | Start offset to use when adding new menu items to the context menu |
|
protected |
Internal method to add all available column profiles to the context menu.
menu | The popup context menu |
offset | Start offset to use when adding new menu items to the context menu |
profiles | List of column profiles that one can change between |
bool CGridListCtrlEx::IsCellCallback | ( | int | nRow, |
int | nCol | ||
) | const |
Checks if the current cell is using callback to retrieve its text value.
nRow | The index of the row |
nCol | The index of the column |
bool CGridListCtrlEx::IsCellEditorOpen | ( | ) | const |
Checks if the cell value editor is open for a cell.
|
virtual |
Checks if a column is fixed to be always hidden.
nCol | The index of the column |
|
virtual |
Checks if a column is fixed to be always visible.
nCol | The index of the column |
|
virtual |
Checks if a column is allowed to be resized.
nCol | The index of the column |
|
virtual |
Retrieves the column visible state from the column trait.
nCol | The index of the column |
bool CGridListCtrlEx::IsRowSelected | ( | int | nRow | ) | const |
Checks if the LVIS_SELECTED state flag set for the specified row.
nRow | The index of the row |
|
virtual |
Loads the column state of a single column.
nConfigCol | The column index in the persisting interface |
nOwnerCol | The column index in the owner list control |
config | The interface for persisting the configuration |
|
virtual |
Loads and applies the column configuration for the list control.
config | The interface for persisting the configuration |
|
protectedvirtual |
Shifts the cell focus left or right in the same row.
bMoveRight | Specifies whether the cell focus should be left or right |
|
protectedvirtual |
Inserts the selected rows before the specified row.
nDropRow | Insert the selected rows before this row |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
LVN_BEGINDRAG message handler called when performing left-click drag.
Used to perform drag drop from the list control. Override this method to disable drag drop of rows.
pNMHDR | Pointer to an NMLISTVIEW structure specifying the column |
pResult | Not used |
|
protectedvirtual |
LVN_BEGINLABELEDIT message handler called when start editing a cell.
Blocks cell edit events from the parent CListCtrl for the label column.
pNMHDR | Pointer to an LV_DISPINFO structure |
pResult | Set to TRUE prevents the user from editing the label, else FALSE |
|
protectedvirtual |
WM_CHAR message handler for performing keyboard search with subitems.
nChar | Specifies the virtual key code of the given key. |
nRepCnt | Repeat count (the number of times the keystroke is repeated as a result of the user holding down the key). |
nFlags | Specifies the scan code, key-transition code, previous key state, and context code |
|
protectedvirtual |
Override this method to control whether cell edit should be started when clicked with the mouse.
nRow | The index of the row |
nCol | The index of the column |
pt | The position clicked, in client coordinates. |
bDblClick | Whether the position was double clicked |
|
protectedvirtual |
WM_CONTEXTMENU message handler to show popup menu when mouse right click is used (or SHIFT+F10 on the keyboard)
pWnd | Handle to the window in which the user right clicked the mouse |
point | Position of the cursor, in screen coordinates, at the time of the mouse click. |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
Override this method to change the context menu when activating context menu for a single cell.
pWnd | Handle to the window in which the user right clicked the mouse |
point | Position of the cursor, in screen coordinates, at the time of the mouse click. |
nRow | The index of the row |
nCol | The index of the column |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
Override this method to change the context menu when activating context menu in client area with no rows.
pWnd | Handle to the window in which the user right clicked the mouse |
point | Position of the cursor, in screen coordinates, at the time of the mouse click. |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
Override this method to change the context menu when activating context menu for the column headers.
pWnd | Handle to the window in which the user right clicked the mouse |
point | Position of the cursor, in screen coordinates, at the time of the mouse click. |
nCol | The index of the column |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
Override this method to change the context menu when using the keyboard shortcut SHIFT+F10.
pWnd | Handle to the window in which the user right clicked the mouse |
point | Position of the cursor, in screen coordinates, at the time of the mouse click. |
|
protectedvirtual |
WM_COPY message handler.
Not sent by default, but just incase
wParam | Not used |
lParam | Not used |
|
protectedvirtual |
WM_CREATE message handler.
Called when inside a CView.
lpCreateStruct | Pointer to a CREATESTRUCT structure that contains information about the list control object being created. |
|
protectedvirtual |
Performs custom drawing of the CListCtrl.
pNMHDR | Pointer to NMLVCUSTOMDRAW structure |
pResult | Modification to the drawing stage (CDRF_NEWFONT, etc.) |
|
protectedvirtual |
Performs custom drawing of the CListCtrl using CGridColumnTrait.
nRow | The index of the row |
nCol | The index of the column |
pLVCD | Pointer to NMLVCUSTOMDRAW structure |
pResult | Modification to the drawing stage (CDRF_NEWFONT, etc.) |
|
protectedvirtual |
Performs custom drawing of the CListCtrl using CGridRowTrait.
nRow | The index of the row |
pLVCD | Pointer to NMLVCUSTOMDRAW structure |
pResult | Modification to the drawing stage (CDRF_NEWFONT, etc.) |
|
protectedvirtual |
LVM_DELETECOLUMN message handler to ensure the column trait container is updated when columns are removed.
wParam | The index of the column just deleted |
lParam | Not used |
|
virtual |
Override this method to change the colors used for drawing a cell.
pLVCD | Pointer to NMLVCUSTOMDRAW structure |
|
virtual |
Override this method to change the colors used for drawing a cell.
nRow | The index of the row |
nCol | The index of the column |
textColor | The text color used when drawing the cell |
backColor | The background color when drawing the cell |
|
virtual |
Override this method to change the font used for drawing a cell.
pLVCD | Pointer to NMLVCUSTOMDRAW structure |
font | The font description to use for drawing the cell |
|
virtual |
Override this method to change the font used for drawing a cell.
nRow | The index of the row |
nCol | The index of the column |
font | The font description to use for drawing the cell |
|
virtual |
Override this method to provide icon index when drawing cells Only called when using I_IMAGECALLBACK with SetCellImage()
nRow | The index of the row |
nCol | The index of the column |
nImageId | The icon index in the list control image list |
|
virtual |
Override this method to provide text string and image index when drawing cells.
lvi | The item that requires cell text and image index |
|
virtual |
Override this method to provide text string when drawing cells Only called when using LPSTR_TEXTCALLBACK with CListCtrl::SetItemText()
nRow | The index of the row |
nCol | The index of the column |
strText | Text string to display in the cell |
|
virtual |
Override this method if wanting to specify whether a tooltip is available.
Called constantly while the mouse is moving over the list-control.
point | Current mouse position relative to the upper-left corner of the window |
|
virtual |
Override this method to display a custom tooltip text when holding the mouse over a cell.
Called after the tooltip timer has fired.
nRow | The index of the row |
nCol | The index of the column |
strResult | The text value to display in the tooltip |
|
virtual |
Override this method to display a custom tooltip text when holding the mouse over a column header.
Called constantly while the mouse is moving over the header-control.
nCol | The index of the column |
strResult | The text value to display in the tooltip |
|
virtual |
Override this method to react to mouse over event during drag drop.
nRow | The index of the row |
|
virtual |
Override this method to change the color used for drawing a row.
nRow | The index of the row |
textColor | The text color used when drawing the row |
backColor | The background color when drawing the row |
|
virtual |
Override this method to change the font used for drawing a row.
nRow | The index of the row |
font | The font description to use for drawing the row |
|
virtual |
Override this method to control what is placed in the global clipboard.
strResult | Text to place in the clipboard |
includeHeader | Include column headers when copying to clipboard |
|
virtual |
Override this method to control what to place in the clipboard for a single row.
nRow | The index of the row |
strResult | Text to place in the clipboard |
|
virtual |
Override this method to control what to place in the clipboard for a single cell.
nRow | The index of the row |
nCol | The index of the column |
strResult | Text to place in the clipboard |
|
virtual |
Override this method to control what data is selected for drag drop operation.
strResult | Text to place in the drag drop cache |
|
protectedvirtual |
Called by the framework when the cursor is first dragged into the window.
pDataObject | Points to the data object containing the data that can be dropped |
dwKeyState | Contains the state of the modifier keys (MK_SHIFT, MK_CONTROL, etc.) |
point | Contains the current location of the cursor in client coordinates. |
|
protectedvirtual |
Called by the framework during drag-drop operation, and allows one to give visual feedback to the end user during a drag-and-drop operation.
dropEffect | The DROPEFFECT value returned by the most recent call to IDropTarget::DragEnter, IDropTarget::DragOver, or IDropTarget::DragLeave. |
|
protectedvirtual |
Called by the framework when the cursor is dragged over the window.
pDataObject | Points to the data object containing the data that can be dropped |
dwKeyState | Contains the state of the modifier keys (MK_SHIFT, MK_CONTROL, etc.) |
point | Contains the current location of the cursor in client coordinates. |
|
protectedvirtual |
Called by the framework when a drop operation is to occur.
pDataObject | Points to the data object containing the data that can be dropped |
dropEffect | The effect that the user chose for the drop operation (DROPEFFECT_COPY, DROPEFFECT_MOVE, DROPEFFECT_LINK) |
point | Contains the current location of the cursor in client coordinates. |
|
protectedvirtual |
Called by the framework when a drop operation is to occur, where the origin is an external source.
pDataObject | Points to the data object containing the data that can be dropped |
dropEffect | The effect that the user chose for the drop operation (DROPEFFECT_COPY, DROPEFFECT_MOVE, DROPEFFECT_LINK) |
point | Contains the current location of the cursor in client coordinates. |
|
protectedvirtual |
Called by the framework when a drop operation is to occur, where the origin is the CGridListCtrlEx itself.
pDataObject | Points to the data object containing the data that can be dropped |
dropEffect | The effect that the user chose for the drop operation (DROPEFFECT_COPY, DROPEFFECT_MOVE, DROPEFFECT_LINK) |
point | Contains the current location of the cursor in client coordinates. |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
Override this method to control whether cell editing is allowed for a cell.
Called when start editing a cell value
nRow | The index of the row |
nCol | The index of the column |
|
protectedvirtual |
Override this method to control whether cell editing is allowed for a cell.
Called when start editing a cell value
nRow | The index of the row |
nCol | The index of the column |
pt | The position clicked, in client coordinates. |
|
protectedvirtual |
Override this method to validate the new value after a cell edit.
Called when completed editing of a cell value
nRow | The index of the row |
nCol | The index of the column |
pEditor | Pointer to the cell editor created by the column trait |
pLVDI | Specifies the properties of the new cell value |
|
protectedvirtual |
LVN_ENDLABELEDIT message handler called when completed a cell edit.
Makes it possible to validate input, and reject invalid values.
pNMHDR | Pointer to an LV_DISPINFO structure |
pResult | Set to TRUE accepts the cell edit, else FALSE |
|
protectedvirtual |
LVN_GETDISPINFO message handler, which is called when details are needed for an item that specifies callback.
pNMHDR | Pointer to an NMLVDISPINFO structure |
pResult | Not used |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
HDN_BEGINDRAG message handler called when about to move a column to a new position.
Used to ensure that any cell value editing is completed.
pNMHDR | Pointer to an NMHEADER structure with information about the column just resized |
pResult | Set to FALSE to allow header control to automatically manage column order. Set to TRUE if manually wanting to manage column order. |
|
protectedvirtual |
HDN_BEGINTRACK message handler called when resizing columns.
Used to prevent resizing of hidden columns.
pNMHDR | Pointer to an NMHEADER structure with information about the column being resized |
pResult | Set to FALSE to allow tracking of the divider, or TRUE to prevent tracking |
|
protectedvirtual |
LVN_COLUMNCLICK message handler called when clicking a column header.
Used to update the row sorting according to the clicked column.
pNMHDR | Pointer to an NMLISTVIEW structure specifying the column |
pResult | Not used |
|
protectedvirtual |
HDN_DIVIDERDBLCLICK message handler called when double clicking the divider in the columns of the CHeaderCtrl.
Used to prevent resizing of hidden columns.
pNMHDR | Pointer to an NMHEADER structure with information about the divider was double-clicked |
pResult | Not used |
|
protectedvirtual |
HDN_ENDDRAG message handler called after a column have been dragged, but before the column order has been updated.
Used to ensure that visible columns are not dragged in between invisible columns.
pNMHDR | Pointer to an NMHEADER structure with information about the column just resized |
pResult | If the owner is performing external (manual) drag-and-drop management, it must be set to FALSE |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
HDN_ENDTRACK message handler called after column resize.
Used to persist the new column state.
pNMHDR | Pointer to an NMHEADER structure with information about the column just resized |
pResult | Not used |
|
protectedvirtual |
HDN_ITEMCHANGING message handler called during column resize.
Used to enforce column max and min width.
pNMHDR | Pointer to an NMHEADER structure with information about the column just resized |
pResult | Returns FALSE to allow the changes, or TRUE to prevent them. |
|
protectedvirtual |
WM_HSCROLL message handler called when scrolling in the list control.
Used to ensure that any cell value editing is completed.
nSBCode | Specifies a scroll-bar code that indicates the user's scrolling request |
nPos | Specifies the scroll-box position if the scroll-bar code is SB_THUMBPOSITION or SB_THUMBTRACK (Can be negative) |
pScrollBar | If the scroll message came from a scroll-bar control, contains a pointer to the control |
|
protectedvirtual |
LVM_INSERTCOLUMN message handler to ensure the column trait container is updated when columns are inserted.
wParam | The index of the column just inserted |
lParam | Not used |
|
protectedvirtual |
LVN_ITEMCHANGED message handler called when a row changes state When using LVS_OWNERDATA style, this only gets called for single item state change.
pNMHDR | Pointer to LPNMLISTVIEW structure |
pResult | Not used |
|
protectedvirtual |
NM_CLICK message handler called when left-clicking in a cell.
Just to show how to catch the single click event.
pNMHDR | Pointer to NMITEMACTIVATE structure |
pResult | Not used |
|
protectedvirtual |
NM_DBLCLK message handler called when double-clicking in a cell.
Just to show how to catch the double click event.
pNMHDR | Pointer to NMITEMACTIVATE structure |
pResult | Not used |
|
virtual |
Override this method to optimize the keyboard search for LVS_OWNERDATA (virtual list)
nCol | Column where the search is performed |
nStartRow | Row index at which the search will start |
strSearch | String to search for |
|
protectedvirtual |
WM_KEYDOWN message handler for performing keyboard navigation.
nChar | Specifies the virtual key code of the given key. |
nRepCnt | Repeat count (the number of times the keystroke is repeated as a result of the user holding down the key). |
nFlags | Specifies the scan code, key-transition code, previous key state, and context code |
|
protectedvirtual |
WM_KILLFOCUS message handler called when list control is loosing focus to other control.
Used to persist the new column state. Fix redraw issue.
pNewWnd | Pointer to the window that receives the input focus (may be NULL or may be temporary). |
|
protectedvirtual |
The WM_LBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is in the client area of a window Used to flip the checkbox image even when double-clicking.
If wanting to handle the double-click event, then one should use NM_DBLCLK
nFlags | Indicates whether various virtual keys are down (MK_CONTROL, MK_SHIFT, etc.) |
point | Mouse cursor position relative to the upper-left corner of the client area. |
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
WM_LBUTTONDOWN message handler called when the user presses the left mouse button while the cursor is in the client area of a window.
Used to activate the cell editor of the cell clicked using the mouse.
nFlags | Indicates whether various virtual keys are down (MK_CONTROL, MK_SHIFT, etc.) |
point | Mouse cursor position relative to the upper-left corner of the client area. |
|
virtual |
Override this method to display checkbox state for LVS_OWNERDATA (virtual list).
nRow | The row index being displayed |
|
protectedvirtual |
LVN_ODFINDITEM message handler for performing keyboard search when LVS_OWNERDATA (virtual list)
pNMHDR | Pointer to NMLVFINDITEM structure |
pResult | Set to the row-index matching the keyboard search (-1 for no match) |
|
virtual |
Override this method to react to check box being toggled for LVS_OWNERDATA (virtual list).
Remember to force a redraw to ensure the new checkbox state is displayed.
nRow | The row index where the checkbox should be toggled |
bChecked | Whether the checkbox has been checked on unchecked |
|
protectedvirtual |
WM_PAINT message handler called when needing to redraw list control.
Used to display text when the list control is empty
Reimplemented in CGridListCtrlGroups.
|
protectedvirtual |
WM_RBUTTONDOWN message handler called when the user presses the right mouse button while the cursor is in the client area of a window.
Used to change focus to the cell clicked using the mouse.
nFlags | Indicates whether various virtual keys are down (MK_CONTROL, MK_SHIFT, etc.) |
point | Mouse cursor position relative to the upper-left corner of the client area. |
|
protectedvirtual |
LVM_SETCOLUMNWIDTH message handler called when wanting to resize a column.
Used to prevent resize of hidden columns.
wParam | The index of the column |
lParam | New width of the column (High word) |
|
protectedvirtual |
WM_SETFOCUS message handler called when list control is receiving focus from other control.
Fix redraw issue.
pOldWnd | Pointer to the window that looses focus (may be NULL or may be temporary) |
|
protectedvirtual |
WM_SETFONT message handler.
For re-applying margin if font changes
wParam | Handle to the font (HFONT), where NULL means default font |
lParam | The low-order word of lParam specifies whether to redraw |
|
protectedvirtual |
Called by the MFC framework during mouse over to detemine whether a point is in the bounding rectangle of the specified tool.
It requests a TTN_NEEDTEXT notification when the tooltip text is needed instead of building and allocating the tooltip text at mouse over.
If needing to display more than 80 characters, then the easy solution is to override this method and allocate and build the tooltip right away.
point | Current mouse position relative to the upper-left corner of the window |
pTI | A pointer to a TOOLINFO structure |
|
protectedvirtual |
TTN_NEEDTEXT message handler called when the tooltip timer fires.
It uses the default tooltip buffer, that limits the tooltip to 80 characters.
If needing to display more than 80 characters, then the easy solution is to override CGridListCtrlEx::OnToolHitTest().
id | Not used |
pNMHDR | Pointer to an TOOLTIPTEXT structure |
pResult | Not used |
|
protectedvirtual |
WM_VSCROLL message handler called when scrolling in the list control.
Used to ensure that any cell value editing is completed.
nSBCode | Specifies a scroll-bar code that indicates the user's scrolling request |
nPos | Specifies the scroll-box position if the scroll-bar code is SB_THUMBPOSITION or SB_THUMBTRACK (Can be negative) |
pScrollBar | If the scroll message came from a scroll-bar control, contains a pointer to the control |
|
virtual |
Open the column configuration editor for the column (If one available)
nCol | The index of the column |
|
protectedvirtual |
Normally used for subclassing controls, but here used to configure initial style when list control is created.
|
protectedvirtual |
Registers the CListCtrl as a valid OLE drag drop target.
|
virtual |
Saves the column state of a single column.
nConfigCol | The column index in the persisting interface |
nOwnerCol | The column index in the owner list control |
config | The interface for persisting the configuration |
|
virtual |
Saves the column configuration of the list control.
config | The interface for persisting the configuration |
BOOL CGridListCtrlEx::SelectRow | ( | int | nRow, |
bool | bSelect | ||
) |
Sets the LVIS_SELECTED state flag for the specified row.
nRow | The index of the row. -1 means all rows |
bSelect | Whether row should be selected or not |
BOOL CGridListCtrlEx::SetCellImage | ( | int | nRow, |
int | nCol, | ||
int | nImageId | ||
) |
Sets the icon of the specified cell.
nRow | The index of the row |
nCol | The index of the column |
nImageId | The icon index in the list control image list |
|
virtual |
Takes the current font and increases the font with the given margin multiplier.
Increases the row-height but keeps the cell font intact. Gives more room for the grid-cell editors and their border.
margin | Multiplier for how much to increase the font size |
|
virtual |
Resizes the width of a column according the contents of the cells below.
nCol | The index of the column |
bIncludeHeader | Include the column header text the column width calculation |
|
virtual |
Sets the default row trait used by default for drawing rows.
pRowTrait | Pointer to row trait |
void CGridListCtrlEx::SetEmptyMarkupText | ( | const CString & | strText | ) |
Update the markup text displayed when the list control is empty.
strText | Text to display when list control is empty |
|
virtual |
Changes the focus cell.
Override this method and set m_FocusCell = -1 if wanting to disable subitem focus
nCol | The index of the column |
bRedraw | Should the focus row be redrawn ? (true / false) |
void CGridListCtrlEx::SetFocusRow | ( | int | nRow | ) |
Sets LVIS_FOCUSED state flag for the specified row.
nRow | The index of the row |
|
virtual |
Puts a sort-icon in the column header of the specified column.
nCol | The index of the column |
bAscending | Should the arrow be up or down |
|
virtual |
Sets the interface for handling state persistence for the list control.
pColumnConfig | The new column state interface handler |
bConfigOwner | Destructor should free the column state object (true / false) |
|
virtual |
Changes the visible state of column.
Hides a column by resizing the column width to zero and moving it to the outer left in the column order. Shows a column by returning it to its original position.
nCol | The index of the column |
bShow | Specifies whether the column should be shown or hidden |
|
protectedvirtual |
Changes the row sorting in regard to the specified column.
nCol | The index of the column |
bAscending | Perform sorting in ascending or descending order |
Reimplemented in CGridListCtrlGroups.
|
virtual |
Switch to different column configurations profile.
strProfile | List of available column profiles |