#include <GridCtrl.h>
Public Member Functions | |
CGridCtrl (int nRows=0, int nCols=0, int nFixedRows=0, int nFixedCols=0) | |
BOOL | Create (const RECT &rect, CWnd *parent, UINT nID, DWORD dwStyle=WS_CHILD|WS_BORDER|WS_TABSTOP|WS_VISIBLE) |
int | GetRowCount () const |
int | GetColumnCount () const |
int | GetFixedRowCount () const |
int | GetFixedColumnCount () const |
BOOL | SetRowCount (int nRows=10) |
BOOL | SetColumnCount (int nCols=10) |
BOOL | SetFixedRowCount (int nFixedRows=1) |
BOOL | SetFixedColumnCount (int nFixedCols=1) |
int | GetRowHeight (int nRow) const |
BOOL | SetRowHeight (int row, int height) |
int | GetColumnWidth (int nCol) const |
BOOL | SetColumnWidth (int col, int width) |
BOOL | GetCellOrigin (int nRow, int nCol, LPPOINT p) |
BOOL | GetCellOrigin (const CCellID &cell, LPPOINT p) |
BOOL | GetCellRect (int nRow, int nCol, LPRECT pRect) |
BOOL | GetCellRect (const CCellID &cell, LPRECT pRect) |
BOOL | GetTextRect (const CCellID &cell, LPRECT pRect) |
BOOL | GetTextRect (int nRow, int nCol, LPRECT pRect) |
int | GetFixedRowHeight () const |
int | GetFixedColumnWidth () const |
long | GetVirtualWidth () const |
long | GetVirtualHeight () const |
CSize | GetTextExtent (int nRow, int nCol, LPCTSTR str) |
CSize | GetCellTextExtent (int nRow, int nCol) |
void | SetGridBkColor (COLORREF clr) |
COLORREF | GetGridBkColor () const |
void | SetGridLineColor (COLORREF clr) |
COLORREF | GetGridLineColor () const |
void | SetTitleTipBackClr (COLORREF clr=CLR_DEFAULT) |
COLORREF | GetTitleTipBackClr () |
void | SetTitleTipTextClr (COLORREF clr=CLR_DEFAULT) |
COLORREF | GetTitleTipTextClr () |
void | SetTextColor (COLORREF clr) |
COLORREF | GetTextColor () |
void | SetTextBkColor (COLORREF clr) |
COLORREF | GetTextBkColor () |
void | SetFixedTextColor (COLORREF clr) |
COLORREF | GetFixedTextColor () const |
void | SetFixedBkColor (COLORREF clr) |
COLORREF | GetFixedBkColor () const |
void | SetGridColor (COLORREF clr) |
COLORREF | GetGridColor () |
void | SetBkColor (COLORREF clr) |
COLORREF | GetBkColor () |
void | SetDefCellMargin (int nMargin) |
int | GetDefCellMargin () const |
int | GetDefCellHeight () const |
void | SetDefCellHeight (int nHeight) |
int | GetDefCellWidth () const |
void | SetDefCellWidth (int nWidth) |
int | GetSelectedCount () const |
CCellID | SetFocusCell (CCellID cell) |
CCellID | SetFocusCell (int nRow, int nCol) |
CCellID | GetFocusCell () const |
void | SetVirtualMode (BOOL bVirtual) |
BOOL | GetVirtualMode () const |
void | SetCallbackFunc (GRIDCALLBACK pCallback, LPARAM lParam) |
GRIDCALLBACK | GetCallbackFunc () |
void | SetImageList (CImageList *pList) |
CImageList * | GetImageList () const |
void | SetGridLines (int nWhichLines=GVL_BOTH) |
int | GetGridLines () const |
void | SetEditable (BOOL bEditable=TRUE) |
BOOL | IsEditable () const |
void | SetListMode (BOOL bEnableListMode=TRUE) |
BOOL | GetListMode () const |
void | SetSingleRowSelection (BOOL bSing=TRUE) |
BOOL | GetSingleRowSelection () |
void | SetSingleColSelection (BOOL bSing=TRUE) |
BOOL | GetSingleColSelection () |
void | EnableSelection (BOOL bEnable=TRUE) |
BOOL | IsSelectable () const |
void | SetFixedColumnSelection (BOOL bSelect) |
BOOL | GetFixedColumnSelection () |
void | SetFixedRowSelection (BOOL bSelect) |
BOOL | GetFixedRowSelection () |
void | EnableDragAndDrop (BOOL bAllow=TRUE) |
BOOL | GetDragAndDrop () const |
void | SetRowResize (BOOL bResize=TRUE) |
BOOL | GetRowResize () const |
void | SetColumnResize (BOOL bResize=TRUE) |
BOOL | GetColumnResize () const |
void | SetHeaderSort (BOOL bSortOnClick=TRUE) |
BOOL | GetHeaderSort () const |
void | SetHandleTabKey (BOOL bHandleTab=TRUE) |
BOOL | GetHandleTabKey () const |
void | SetDoubleBuffering (BOOL bBuffer=TRUE) |
BOOL | GetDoubleBuffering () const |
void | EnableTitleTips (BOOL bEnable=TRUE) |
BOOL | GetTitleTips () |
void | SetSortColumn (int nCol) |
int | GetSortColumn () const |
void | SetSortAscending (BOOL bAscending) |
BOOL | GetSortAscending () const |
void | SetTrackFocusCell (BOOL bTrack) |
BOOL | GetTrackFocusCell () |
void | SetFrameFocusCell (BOOL bFrame) |
BOOL | GetFrameFocusCell () |
void | SetAutoSizeStyle (int nStyle=GVS_BOTH) |
int | GetAutoSizeStyle () |
void | EnableHiddenColUnhide (BOOL bEnable=TRUE) |
BOOL | GetHiddenColUnhide () |
void | EnableHiddenRowUnhide (BOOL bEnable=TRUE) |
BOOL | GetHiddenRowUnhide () |
void | EnableColumnHide (BOOL bEnable=TRUE) |
BOOL | GetColumnHide () |
void | EnableRowHide (BOOL bEnable=TRUE) |
BOOL | GetRowHide () |
CGridCellBase * | GetDefaultCell (BOOL bFixedRow, BOOL bFixedCol) const |
CGridCellBase * | GetCell (int nRow, int nCol) const |
void | SetModified (BOOL bModified=TRUE, int nRow=-1, int nCol=-1) |
BOOL | GetModified (int nRow=-1, int nCol=-1) |
BOOL | IsCellFixed (int nRow, int nCol) |
BOOL | SetItem (const GV_ITEM *pItem) |
BOOL | GetItem (GV_ITEM *pItem) |
BOOL | SetItemText (int nRow, int nCol, LPCTSTR str) |
CString | GetItemText (int nRow, int nCol) const |
BOOL | SetItemData (int nRow, int nCol, LPARAM lParam) |
LPARAM | GetItemData (int nRow, int nCol) const |
BOOL | SetItemImage (int nRow, int nCol, int iImage) |
int | GetItemImage (int nRow, int nCol) const |
BOOL | SetItemState (int nRow, int nCol, UINT state) |
UINT | GetItemState (int nRow, int nCol) const |
BOOL | SetItemFormat (int nRow, int nCol, UINT nFormat) |
UINT | GetItemFormat (int nRow, int nCol) const |
BOOL | SetItemBkColour (int nRow, int nCol, COLORREF cr=CLR_DEFAULT) |
COLORREF | GetItemBkColour (int nRow, int nCol) const |
BOOL | SetItemFgColour (int nRow, int nCol, COLORREF cr=CLR_DEFAULT) |
COLORREF | GetItemFgColour (int nRow, int nCol) const |
BOOL | SetItemFont (int nRow, int nCol, const LOGFONT *lf) |
const LOGFONT * | GetItemFont (int nRow, int nCol) |
BOOL | IsItemEditing (int nRow, int nCol) |
BOOL | SetCellType (int nRow, int nCol, CRuntimeClass *pRuntimeClass) |
BOOL | SetDefaultCellType (CRuntimeClass *pRuntimeClass) |
int | InsertColumn (LPCTSTR strHeading, UINT nFormat=DT_CENTER|DT_VCENTER|DT_SINGLELINE, int nColumn=-1) |
int | InsertRow (LPCTSTR strHeading, int nRow=-1) |
BOOL | DeleteColumn (int nColumn) |
BOOL | DeleteRow (int nRow) |
BOOL | DeleteNonFixedRows () |
BOOL | DeleteAllItems () |
BOOL | AutoSizeRow (int nRow, BOOL bResetScroll=TRUE) |
BOOL | AutoSizeColumn (int nCol, UINT nAutoSizeStyle=GVS_DEFAULT, BOOL bResetScroll=TRUE) |
void | AutoSizeRows () |
void | AutoSizeColumns (UINT nAutoSizeStyle=GVS_DEFAULT) |
void | AutoSize (UINT nAutoSizeStyle=GVS_DEFAULT) |
void | ExpandColumnsToFit () |
void | ExpandLastColumn () |
void | ExpandRowsToFit () |
void | ExpandToFit () |
void | Refresh () |
void | AutoFill () |
void | EnsureVisible (CCellID &cell) |
void | EnsureVisible (int nRow, int nCol) |
BOOL | IsCellVisible (int nRow, int nCol) |
BOOL | IsCellVisible (CCellID cell) |
BOOL | IsCellEditable (int nRow, int nCol) const |
BOOL | IsCellEditable (CCellID &cell) const |
BOOL | IsCellSelected (int nRow, int nCol) const |
BOOL | IsCellSelected (CCellID &cell) const |
void | SetRedraw (BOOL bAllowDraw, BOOL bResetScrollBars=FALSE) |
BOOL | RedrawCell (int nRow, int nCol, CDC *pDC=NULL) |
BOOL | RedrawCell (const CCellID &cell, CDC *pDC=NULL) |
BOOL | RedrawRow (int row) |
BOOL | RedrawColumn (int col) |
BOOL | Save (LPCTSTR filename) |
BOOL | Load (LPCTSTR filename) |
CCellRange | GetCellRange () const |
CCellRange | GetSelectedCellRange () const |
void | SetSelectedRange (const CCellRange &Range, BOOL bForceRepaint=FALSE, BOOL bSelectCells=TRUE) |
void | SetSelectedRange (int nMinRow, int nMinCol, int nMaxRow, int nMaxCol, BOOL bForceRepaint=FALSE, BOOL bSelectCells=TRUE) |
BOOL | IsValid (int nRow, int nCol) const |
BOOL | IsValid (const CCellID &cell) const |
BOOL | IsValid (const CCellRange &range) const |
virtual void | CutSelectedText () |
virtual COleDataSource * | CopyTextFromGrid () |
virtual BOOL | PasteTextToGrid (CCellID cell, COleDataObject *pDataObject) |
void | OnBeginDrag () |
DROPEFFECT | OnDragEnter (COleDataObject *pDataObject, DWORD dwKeyState, CPoint point) |
DROPEFFECT | OnDragOver (COleDataObject *pDataObject, DWORD dwKeyState, CPoint point) |
void | OnDragLeave () |
BOOL | OnDrop (COleDataObject *pDataObject, DROPEFFECT dropEffect, CPoint point) |
virtual void | OnEditCut () |
virtual void | OnEditCopy () |
virtual void | OnEditPaste () |
virtual void | OnEditSelectAll () |
CCellID | GetNextItem (CCellID &cell, int nFlags) const |
BOOL | SortTextItems (int nCol, BOOL bAscending) |
BOOL | SortItems (PFNLVCOMPARE pfnCompare, int nCol, BOOL bAscending, LPARAM data=0) |
void | Print () |
void | EnableWysiwygPrinting (BOOL bEnable=TRUE) |
BOOL | GetWysiwygPrinting () |
void | SetShadedPrintOut (BOOL bEnable=TRUE) |
BOOL | GetShadedPrintOut (void) |
void | SetPrintMarginInfo (int nHeaderHeight, int nFooterHeight, int nLeftMargin, int nRightMargin, int nTopMargin, int nBottomMargin, int nGap) |
void | GetPrintMarginInfo (int &nHeaderHeight, int &nFooterHeight, int &nLeftMargin, int &nRightMargin, int &nTopMargin, int &nBottomMargin, int &nGap) |
virtual void | OnBeginPrinting (CDC *pDC, CPrintInfo *pInfo) |
virtual void | OnPrint (CDC *pDC, CPrintInfo *pInfo) |
virtual void | OnEndPrinting (CDC *pDC, CPrintInfo *pInfo) |
virtual | ~CGridCtrl () |
Protected Types | |
MOUSE_NOTHING | |
MOUSE_SELECT_ALL | |
MOUSE_SELECT_COL | |
MOUSE_SELECT_ROW | |
MOUSE_SELECT_CELLS | |
MOUSE_SCROLLING_CELLS | |
MOUSE_OVER_ROW_DIVIDE | |
MOUSE_SIZING_ROW | |
MOUSE_OVER_COL_DIVIDE | |
MOUSE_SIZING_COL | |
MOUSE_PREPARE_EDIT | |
MOUSE_PREPARE_DRAG | |
MOUSE_DRAGGING | |
enum | eMouseModes { MOUSE_NOTHING, MOUSE_SELECT_ALL, MOUSE_SELECT_COL, MOUSE_SELECT_ROW, MOUSE_SELECT_CELLS, MOUSE_SCROLLING_CELLS, MOUSE_OVER_ROW_DIVIDE, MOUSE_SIZING_ROW, MOUSE_OVER_COL_DIVIDE, MOUSE_SIZING_COL, MOUSE_PREPARE_EDIT, MOUSE_PREPARE_DRAG, MOUSE_DRAGGING } |
Protected Member Functions | |
virtual void | PreSubclassWindow () |
BOOL | RegisterWindowClass () |
BOOL | Initialise () |
void | SetupDefaultCells () |
LRESULT | SendMessageToParent (int nRow, int nCol, int nMessage) const |
LRESULT | SendDisplayRequestToParent (GV_DISPINFO *pDisplayInfo) const |
LRESULT | SendCacheHintToParent (CCellRange &range) const |
BOOL | InvalidateCellRect (const int row, const int col) |
BOOL | InvalidateCellRect (const CCellID &cell) |
BOOL | InvalidateCellRect (const CCellRange &cellRange) |
void | EraseBkgnd (CDC *pDC) |
BOOL | GetCellRangeRect (const CCellRange &cellRange, LPRECT lpRect) |
BOOL | SetCell (int nRow, int nCol, CGridCellBase *pCell) |
int | SetMouseMode (int nMode) |
int | GetMouseMode () const |
BOOL | MouseOverRowResizeArea (CPoint &point) |
BOOL | MouseOverColumnResizeArea (CPoint &point) |
CCellID | GetCellFromPt (CPoint point, BOOL bAllowFixedCellCheck=TRUE) |
CCellID | GetTopleftNonFixedCell () |
CCellRange | GetUnobstructedNonFixedCellRange () |
CCellRange | GetVisibleNonFixedCellRange (LPRECT pRect=NULL) |
BOOL | IsVisibleVScroll () |
BOOL | IsVisibleHScroll () |
void | ResetSelectedRange () |
void | ResetScrollBars () |
void | EnableScrollBars (int nBar, BOOL bEnable=TRUE) |
int | GetScrollPos32 (int nBar, BOOL bGetTrackPos=FALSE) |
BOOL | SetScrollPos32 (int nBar, int nPos, BOOL bRedraw=TRUE) |
BOOL | SortTextItems (int nCol, BOOL bAscending, int low, int high) |
BOOL | SortItems (PFNLVCOMPARE pfnCompare, int nCol, BOOL bAscending, LPARAM data, int low, int high) |
CPoint | GetPointClicked (int nRow, int nCol, const CPoint &point) |
virtual void | PrintColumnHeadings (CDC *pDC, CPrintInfo *pInfo) |
virtual void | PrintHeader (CDC *pDC, CPrintInfo *pInfo) |
virtual void | PrintFooter (CDC *pDC, CPrintInfo *pInfo) |
virtual void | PrintRowButtons (CDC *pDC, CPrintInfo *) |
virtual CImageList * | CreateDragImage (CPoint *pHotSpot) |
virtual void | OnFixedColumnClick (CCellID &cell) |
virtual void | OnFixedRowClick (CCellID &cell) |
virtual void | OnEndEditCell (int nRow, int nCol, CString str) |
virtual void | OnEditCell (int nRow, int nCol, CPoint point, UINT nChar) |
virtual void | EndEditing () |
virtual void | OnDraw (CDC *pDC) |
virtual CGridCellBase * | CreateCell (int nRow, int nCol) |
virtual void | DestroyCell (int nRow, int nCol) |
void | SelectAllCells () |
void | SelectColumns (CCellID currentCell, BOOL bForceRedraw=FALSE, BOOL bSelectCells=TRUE) |
void | SelectRows (CCellID currentCell, BOOL bForceRedraw=FALSE, BOOL bSelectCells=TRUE) |
void | SelectCells (CCellID currentCell, BOOL bForceRedraw=FALSE, BOOL bSelectCells=TRUE) |
void | OnSelecting (const CCellID ¤tCell) |
afx_msg void | OnPaint () |
afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnTimer (UINT nIDEvent) |
afx_msg UINT | OnGetDlgCode () |
afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnChar (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
afx_msg void | OnSysKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
afx_msg void | OnUpdateEditSelectAll (CCmdUI *pCmdUI) |
afx_msg BOOL | OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message) |
afx_msg void | OnRButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnSysColorChange () |
afx_msg void | OnCaptureChanged (CWnd *pWnd) |
afx_msg void | OnUpdateEditCopy (CCmdUI *pCmdUI) |
afx_msg void | OnUpdateEditCut (CCmdUI *pCmdUI) |
afx_msg void | OnUpdateEditPaste (CCmdUI *pCmdUI) |
afx_msg LRESULT | OnSetFont (WPARAM hFont, LPARAM lParam) |
afx_msg LRESULT | OnGetFont (WPARAM hFont, LPARAM lParam) |
afx_msg void | OnEndInPlaceEdit (NMHDR *pNMHDR, LRESULT *pResult) |
DECLARE_MESSAGE_MAP () | |
Protected Attributes | |
COLORREF | m_crFixedTextColour |
COLORREF | m_crFixedBkColour |
COLORREF | m_crGridBkColour |
COLORREF | m_crGridLineColour |
COLORREF | m_crWindowText |
COLORREF | m_crWindowColour |
COLORREF | m_cr3DFace |
COLORREF | m_crShadow |
COLORREF | m_crTTipBackClr |
COLORREF | m_crTTipTextClr |
BOOL | m_bVirtualMode |
LPARAM | m_lParam |
GRIDCALLBACK | m_pfnCallback |
int | m_nGridLines |
BOOL | m_bEditable |
BOOL | m_bModified |
BOOL | m_bAllowDragAndDrop |
BOOL | m_bListMode |
BOOL | m_bSingleRowSelection |
BOOL | m_bSingleColSelection |
BOOL | m_bAllowDraw |
BOOL | m_bEnableSelection |
BOOL | m_bFixedRowSelection |
BOOL | m_bFixedColumnSelection |
BOOL | m_bSortOnClick |
BOOL | m_bHandleTabKey |
BOOL | m_bDoubleBuffer |
BOOL | m_bTitleTips |
int | m_nBarState |
BOOL | m_bWysiwygPrinting |
BOOL | m_bHiddenColUnhide |
BOOL | m_bHiddenRowUnhide |
BOOL | m_bAllowColHide |
BOOL | m_bAllowRowHide |
BOOL | m_bAutoSizeSkipColHdr |
BOOL | m_bTrackFocusCell |
BOOL | m_bFrameFocus |
UINT | m_nAutoSizeColumnStyle |
int | m_nRows |
int | m_nFixedRows |
int | m_nCols |
int | m_nFixedCols |
CUIntArray | m_arRowHeights |
CUIntArray | m_arColWidths |
int | m_nVScrollMax |
int | m_nHScrollMax |
CRuntimeClass * | m_pRtcDefault |
CGridDefaultCell | m_cellDefault |
CGridDefaultCell | m_cellFixedColDef |
CGridDefaultCell | m_cellFixedRowDef |
CGridDefaultCell | m_cellFixedRowColDef |
CFont | m_PrinterFont |
CImageList * | m_pImageList |
CTypedPtrArray< CObArray, GRID_ROW * > | m_RowData |
int | m_MouseMode |
BOOL | m_bMouseButtonDown |
CPoint | m_LeftClickDownPoint |
CPoint | m_LastMousePoint |
CCellID | m_LeftClickDownCell |
CCellID | m_SelectionStartCell |
CCellID | m_idCurrentCell |
CCellID | m_idTopLeftCell |
int | m_nTimerID |
int | m_nTimerInterval |
int | m_nResizeCaptureRange |
BOOL | m_bAllowRowResize |
BOOL | m_bAllowColumnResize |
int | m_nRowsPerWheelNotch |
CMap< DWORD, DWORD, CCellID, CCellID & > | m_SelectedCellMap |
CMap< DWORD, DWORD, CCellID, CCellID & > | m_PrevSelectedCellMap |
CTitleTip | m_TitleTip |
BOOL | m_bMustUninitOLE |
CCellID | m_LastDragOverCell |
CGridDropTarget | m_DropTarget |
CSize | m_CharSize |
int | m_nPageHeight |
CSize | m_LogicalPageSize |
CSize | m_PaperSize |
int | m_nPageWidth |
int | m_nPrintColumn |
int | m_nCurrPrintRow |
int | m_nNumPages |
int | m_nPageMultiplier |
int | m_bAscending |
int | m_nSortColumn |
BOOL | m_bShadedPrintOut |
int | m_nHeaderHeight |
int | m_nFooterHeight |
int | m_nLeftMargin |
int | m_nRightMargin |
int | m_nTopMargin |
int | m_nBottomMargin |
int | m_nGap |
Friends | |
class | CGridCell |
class | CGridCellBase |
Definition at line 183 of file GridCtrl.h.
enum CGridCtrl::eMouseModes [protected] |
Definition at line 738 of file GridCtrl.h.
CGridCtrl::CGridCtrl | ( | int | nRows = 0 , |
|
int | nCols = 0 , |
|||
int | nFixedRows = 0 , |
|||
int | nFixedCols = 0 | |||
) |
Definition at line 198 of file GridCtrl.cpp.
References FALSE, GetMouseScrollLines(), GVL_BOTH, GVL_NONE, GVS_BOTH, m_bAllowColHide, m_bAllowColumnResize, m_bAllowDragAndDrop, m_bAllowDraw, m_bAllowRowHide, m_bAllowRowResize, m_bAscending, m_bDoubleBuffer, m_bEditable, m_bEnableSelection, m_bFixedColumnSelection, m_bFixedRowSelection, m_bFrameFocus, m_bHandleTabKey, m_bHiddenColUnhide, m_bHiddenRowUnhide, m_bListMode, m_bMouseButtonDown, m_bMustUninitOLE, m_bShadedPrintOut, m_bSingleColSelection, m_bSingleRowSelection, m_bSortOnClick, m_bTitleTips, m_bTrackFocusCell, m_bVirtualMode, m_bWysiwygPrinting, m_cr3DFace, m_crGridLineColour, m_crShadow, m_crWindowColour, m_crWindowText, m_MouseMode, m_nAutoSizeColumnStyle, m_nBarState, m_nCols, m_nFixedCols, m_nFixedRows, m_nGridLines, m_nHScrollMax, m_nResizeCaptureRange, m_nRows, m_nRowsPerWheelNotch, m_nSortColumn, m_nTimerID, m_nTimerInterval, m_nVScrollMax, m_pfnCallback, m_pImageList, m_PrevSelectedCellMap, m_pRtcDefault, m_SelectedCellMap, MOUSE_NOTHING, RegisterWindowClass(), SetColumnCount(), SetFixedColumnCount(), SetFixedRowCount(), SetGridBkColor(), SetPrintMarginInfo(), SetRowCount(), SetTitleTipBackClr(), SetTitleTipTextClr(), SetupDefaultCells(), and TRUE.
CGridCtrl::~CGridCtrl | ( | ) | [virtual] |
Definition at line 311 of file GridCtrl.cpp.
References DeleteAllItems(), CTitleTip::DestroyWindow(), m_bMustUninitOLE, m_bTitleTips, and m_TitleTip.
void CGridCtrl::AutoFill | ( | ) |
Definition at line 3816 of file GridCtrl.cpp.
References ExpandToFit(), CGridDefaultCell::GetHeight(), CGridDefaultCell::GetWidth(), m_cellDefault, SetColumnCount(), SetFixedColumnCount(), SetFixedRowCount(), and SetRowCount().
void CGridCtrl::AutoSize | ( | UINT | nAutoSizeStyle = GVS_DEFAULT |
) |
Definition at line 4636 of file GridCtrl.cpp.
References ASSERT, GetAutoSizeStyle(), GetCell(), CGridCellBase::GetCellExtent(), GetColumnCount(), GetColumnWidth(), GetFixedRowCount(), GetRowCount(), GetRowHeight(), GVS_BOTH, GVS_DATA, GVS_DEFAULT, GVS_HEADER, m_arColWidths, m_arRowHeights, Refresh(), and ResetScrollBars().
BOOL CGridCtrl::AutoSizeColumn | ( | int | nCol, | |
UINT | nAutoSizeStyle = GVS_DEFAULT , |
|||
BOOL | bResetScroll = TRUE | |||
) |
Definition at line 4533 of file GridCtrl.cpp.
References ASSERT, FALSE, GetAutoSizeStyle(), GetCell(), CGridCellBase::GetCellExtent(), GetColumnWidth(), GetFixedRowCount(), GetRowCount(), GVS_BOTH, GVS_DATA, GVS_DEFAULT, GVS_HEADER, m_arColWidths, m_nCols, ResetScrollBars(), and TRUE.
Referenced by AutoSizeColumns(), and OnLButtonDblClk().
void CGridCtrl::AutoSizeColumns | ( | UINT | nAutoSizeStyle = GVS_DEFAULT |
) |
Definition at line 4610 of file GridCtrl.cpp.
References AutoSizeColumn(), FALSE, GetColumnCount(), GetColumnWidth(), and ResetScrollBars().
Referenced by Load().
BOOL CGridCtrl::AutoSizeRow | ( | int | nRow, | |
BOOL | bResetScroll = TRUE | |||
) |
Definition at line 4576 of file GridCtrl.cpp.
References ASSERT, FALSE, GetCell(), CGridCellBase::GetCellExtent(), GetColumnCount(), GetRowHeight(), m_arRowHeights, m_nRows, ResetScrollBars(), and TRUE.
Referenced by AutoSizeRows(), and OnLButtonDblClk().
void CGridCtrl::AutoSizeRows | ( | ) |
Definition at line 4622 of file GridCtrl.cpp.
References AutoSizeRow(), FALSE, GetRowCount(), GetRowHeight(), and ResetScrollBars().
COleDataSource * CGridCtrl::CopyTextFromGrid | ( | ) | [virtual] |
Definition at line 2158 of file GridCtrl.cpp.
References GetCell(), CCellRange::GetMaxCol(), CCellRange::GetMaxRow(), CCellRange::GetMinCol(), CCellRange::GetMinRow(), GetSelectedCellRange(), CGridCellBase::GetState(), CGridCellBase::GetText(), GVIS_SELECTED, IsValid(), m_arColWidths, and m_arRowHeights.
Referenced by OnBeginDrag(), OnEditCopy(), and OnEditCut().
BOOL CGridCtrl::Create | ( | const RECT & | rect, | |
CWnd * | parent, | |||
UINT | nID, | |||
DWORD | dwStyle = WS_CHILD|WS_BORDER|WS_TABSTOP|WS_VISIBLE | |||
) |
Definition at line 392 of file GridCtrl.cpp.
References ASSERT, e, FALSE, CGridDefaultCell::GetHeight(), CGridDefaultCell::GetWidth(), GRIDCTRL_CLASSNAME, m_arColWidths, m_arRowHeights, m_cellDefault, m_nCols, m_nRows, ResetScrollBars(), and TRUE.
Referenced by CInPlaceList::CInPlaceList().
CGridCellBase * CGridCtrl::CreateCell | ( | int | nRow, | |
int | nCol | |||
) | [protected, virtual] |
Definition at line 3650 of file GridCtrl.cpp.
References ASSERT, FALSE, GetItemFormat(), CGridCellBase::GetState(), GetVirtualMode(), GVIS_FIXED, GVIS_FIXEDCOL, GVIS_FIXEDROW, m_nCols, m_nFixedCols, m_nFixedRows, m_pRtcDefault, CGridCellBase::SetCoords(), CGridCellBase::SetFormat(), CGridCellBase::SetGrid(), and CGridCellBase::SetState().
Referenced by InsertColumn(), InsertRow(), SetColumnCount(), and SetRowCount().
CImageList * CGridCtrl::CreateDragImage | ( | CPoint * | pHotSpot | ) | [protected, virtual] |
Definition at line 6615 of file GridCtrl.cpp.
References CCellID::col, CGridCellBase::Draw(), FALSE, GetCell(), GetCellRect(), GetDefaultCell(), GetFocusCell(), and CCellID::row.
void CGridCtrl::CutSelectedText | ( | ) | [virtual] |
Definition at line 2125 of file GridCtrl.cpp.
References CCellID::col, GetCell(), GVN_BEGINLABELEDIT, GVN_ENDLABELEDIT, IsCellEditable(), IsEditable(), m_arColWidths, m_arRowHeights, m_SelectedCellMap, Refresh(), CCellID::row, SendMessageToParent(), SetModified(), CGridCellBase::SetText(), and TRUE.
Referenced by OnBeginDrag(), and OnEditCut().
CGridCtrl::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
BOOL CGridCtrl::DeleteAllItems | ( | ) |
Definition at line 3783 of file GridCtrl.cpp.
References CCellID::col, DestroyCell(), GetVirtualMode(), m_arColWidths, m_arRowHeights, m_idCurrentCell, m_nCols, m_nFixedCols, m_nFixedRows, m_nRows, m_RowData, ResetScrollBars(), ResetSelectedRange(), CCellID::row, SetModified(), and TRUE.
Referenced by Load(), SetVirtualMode(), and ~CGridCtrl().
BOOL CGridCtrl::DeleteColumn | ( | int | nColumn | ) |
Definition at line 3692 of file GridCtrl.cpp.
References CCellID::col, DestroyCell(), FALSE, GetColumnCount(), GetRowCount(), GetVirtualMode(), m_arColWidths, m_idCurrentCell, m_nCols, m_nFixedCols, m_RowData, ResetScrollBars(), ResetSelectedRange(), CCellID::row, SetModified(), and TRUE.
BOOL CGridCtrl::DeleteNonFixedRows | ( | ) |
Definition at line 3768 of file GridCtrl.cpp.
References DeleteRow(), GetFixedRowCount(), GetRowCount(), ResetSelectedRange(), and TRUE.
BOOL CGridCtrl::DeleteRow | ( | int | nRow | ) |
Definition at line 3729 of file GridCtrl.cpp.
References CCellID::col, DestroyCell(), FALSE, GetColumnCount(), GetRowCount(), GetVirtualMode(), m_arRowHeights, m_idCurrentCell, m_nFixedRows, m_nRows, m_RowData, ResetScrollBars(), ResetSelectedRange(), CCellID::row, SetModified(), and TRUE.
Referenced by DeleteNonFixedRows().
void CGridCtrl::DestroyCell | ( | int | nRow, | |
int | nCol | |||
) | [protected, virtual] |
Definition at line 3680 of file GridCtrl.cpp.
References ASSERT, GetCell(), GetVirtualMode(), and SetItemState().
Referenced by DeleteAllItems(), DeleteColumn(), DeleteRow(), SetColumnCount(), and SetRowCount().
void CGridCtrl::EnableColumnHide | ( | BOOL | bEnable = TRUE |
) | [inline] |
void CGridCtrl::EnableDragAndDrop | ( | BOOL | bAllow = TRUE |
) | [inline] |
void CGridCtrl::EnableHiddenColUnhide | ( | BOOL | bEnable = TRUE |
) | [inline] |
void CGridCtrl::EnableHiddenRowUnhide | ( | BOOL | bEnable = TRUE |
) | [inline] |
void CGridCtrl::EnableRowHide | ( | BOOL | bEnable = TRUE |
) | [inline] |
void CGridCtrl::EnableScrollBars | ( | int | nBar, | |
BOOL | bEnable = TRUE | |||
) | [protected] |
Definition at line 2836 of file GridCtrl.cpp.
References GVL_HORZ, GVL_VERT, IsVisibleHScroll(), IsVisibleVScroll(), and m_nBarState.
Referenced by ExpandColumnsToFit(), ExpandLastColumn(), ExpandRowsToFit(), and ResetScrollBars().
void CGridCtrl::EnableSelection | ( | BOOL | bEnable = TRUE |
) | [inline] |
void CGridCtrl::EnableTitleTips | ( | BOOL | bEnable = TRUE |
) | [inline] |
void CGridCtrl::EnableWysiwygPrinting | ( | BOOL | bEnable = TRUE |
) | [inline] |
void CGridCtrl::EndEditing | ( | ) | [protected, virtual] |
Definition at line 6763 of file GridCtrl.cpp.
References CCellID::col, CGridCellBase::EndEdit(), GetCell(), GetFocusCell(), IsValid(), and CCellID::row.
Referenced by OnHScroll(), OnLButtonDown(), OnRButtonUp(), OnSize(), and OnVScroll().
void CGridCtrl::EnsureVisible | ( | int | nRow, | |
int | nCol | |||
) |
Definition at line 4886 of file GridCtrl.cpp.
References GetCellRect(), GetColumnWidth(), GetFixedColumnWidth(), GetFixedRowHeight(), CCellRange::GetMaxCol(), CCellRange::GetMaxRow(), CCellRange::GetMinCol(), CCellRange::GetMinRow(), GetRowHeight(), and GetVisibleNonFixedCellRange().
void CGridCtrl::EnsureVisible | ( | CCellID & | cell | ) | [inline] |
Definition at line 414 of file GridCtrl.h.
References CCellID::col, and CCellID::row.
Referenced by OnEditCell(), and OnKeyDown().
void CGridCtrl::EraseBkgnd | ( | CDC * | pDC | ) | [protected] |
Definition at line 594 of file GridCtrl.cpp.
References FALSE, GetDefaultCell(), GetFixedColumnWidth(), GetFixedRowHeight(), GetGridBkColor(), GetVisibleNonFixedCellRange(), max, and TRUE.
Referenced by OnDraw().
void CGridCtrl::ExpandColumnsToFit | ( | ) |
Definition at line 4689 of file GridCtrl.cpp.
References EnableScrollBars(), FALSE, GetColumnCount(), GetVirtualWidth(), int(), m_arColWidths, Refresh(), and ResetScrollBars().
Referenced by ExpandToFit().
void CGridCtrl::ExpandLastColumn | ( | ) |
Definition at line 4724 of file GridCtrl.cpp.
References EnableScrollBars(), FALSE, GetColumnCount(), GetVirtualHeight(), GetVirtualWidth(), int(), m_arColWidths, Refresh(), and ResetScrollBars().
void CGridCtrl::ExpandRowsToFit | ( | ) |
Definition at line 4749 of file GridCtrl.cpp.
References EnableScrollBars(), FALSE, GetRowCount(), GetVirtualHeight(), int(), m_arRowHeights, Refresh(), and ResetScrollBars().
Referenced by ExpandToFit().
void CGridCtrl::ExpandToFit | ( | ) |
Definition at line 4784 of file GridCtrl.cpp.
References ExpandColumnsToFit(), ExpandRowsToFit(), and Refresh().
Referenced by AutoFill(), and CSettingsDlgBar::OnSize().
int CGridCtrl::GetAutoSizeStyle | ( | ) | [inline] |
Definition at line 333 of file GridCtrl.h.
References m_nAutoSizeColumnStyle.
Referenced by AutoSize(), AutoSizeColumn(), Load(), and OnLButtonDblClk().
COLORREF CGridCtrl::GetBkColor | ( | ) | [inline] |
GRIDCALLBACK CGridCtrl::GetCallbackFunc | ( | ) | [inline] |
CGridCellBase * CGridCtrl::GetCell | ( | int | nRow, | |
int | nCol | |||
) | const [inline] |
Definition at line 758 of file GridCtrl.h.
References _GV_ITEM::col, _GV_ITEM::crBkClr, _GV_ITEM::crFgClr, CGridCellBase::GetBackClr(), CGridCellBase::GetData(), GetDefaultCell(), GetFixedColumnCount(), GetFixedRowCount(), GetFocusCell(), CGridCellBase::GetFont(), CGridCellBase::GetFormat(), CGridCellBase::GetImage(), CGridCellBase::GetMargin(), CGridCellBase::GetTextClr(), GetVirtualMode(), GVIS_FIXED, GVIS_FIXEDCOL, GVIS_FIXEDROW, GVIS_FOCUSED, GVIS_SELECTED, _GV_ITEM::iImage, IsCellSelected(), tagGV_DISPINFO::item, _GV_ITEM::lfFont, _GV_ITEM::lParam, m_lParam, m_nCols, m_nFixedCols, m_nFixedRows, m_nRows, m_pfnCallback, m_RowData, _GV_ITEM::mask, _GV_ITEM::nFormat, _GV_ITEM::nMargin, _GV_ITEM::nState, _GV_ITEM::row, SendDisplayRequestToParent(), CGridCell::SetBackClr(), CGridCell::SetData(), CGridCell::SetFont(), CGridCell::SetFormat(), CGridCell::SetGrid(), CGridCell::SetImage(), CGridCell::SetMargin(), CGridCellBase::SetState(), CGridCell::SetText(), CGridCell::SetTextClr(), and _GV_ITEM::strText.
Referenced by AutoSize(), AutoSizeColumn(), AutoSizeRow(), CopyTextFromGrid(), CreateDragImage(), CutSelectedText(), DestroyCell(), EndEditing(), GetItem(), GetItemBkColour(), GetItemData(), GetItemFgColour(), GetItemFont(), GetItemFormat(), GetItemImage(), GetItemState(), GetItemText(), GetTextExtent(), GetTextRect(), CSettingsDlgBar::initGrid(), IsItemEditing(), OnDraw(), OnEditCell(), OnEndEditCell(), OnLButtonDblClk(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), CSettingsDlgBar::OnNotify(), OnPrint(), OnRButtonUp(), OnSetCursor(), PrintColumnHeadings(), PrintRowButtons(), RedrawCell(), SetCellType(), SetItem(), SetItemBkColour(), SetItemData(), SetItemFgColour(), SetItemFont(), SetItemFormat(), SetItemImage(), SetItemState(), SetItemText(), SortItems(), and SortTextItems().
Definition at line 2590 of file GridCtrl.cpp.
References CCellID::col, GetColumnCount(), GetColumnWidth(), GetFixedColumnWidth(), GetFixedRowHeight(), GetRowCount(), GetRowHeight(), GetTopleftNonFixedCell(), IsValid(), m_nFixedCols, m_nFixedRows, and CCellID::row.
Referenced by MouseOverColumnResizeArea(), MouseOverRowResizeArea(), OnDragEnter(), OnDragOver(), OnLButtonDblClk(), OnLButtonDown(), OnMouseMove(), OnRButtonUp(), OnSetCursor(), and OnTimer().
BOOL CGridCtrl::GetCellOrigin | ( | const CCellID & | cell, | |
LPPOINT | p | |||
) |
Definition at line 3011 of file GridCtrl.cpp.
References CCellID::col, GetCellOrigin(), and CCellID::row.
BOOL CGridCtrl::GetCellOrigin | ( | int | nRow, | |
int | nCol, | |||
LPPOINT | p | |||
) |
Definition at line 2969 of file GridCtrl.cpp.
References CCellID::col, FALSE, GetColumnWidth(), GetRowHeight(), GetTopleftNonFixedCell(), IsValid(), m_nFixedCols, m_nFixedRows, CCellID::row, and TRUE.
Referenced by GetCellOrigin(), GetCellRangeRect(), GetCellRect(), GetPointClicked(), MouseOverColumnResizeArea(), MouseOverRowResizeArea(), OnLButtonDblClk(), OnLButtonDown(), and OnLButtonUp().
CCellRange CGridCtrl::GetCellRange | ( | ) | const |
BOOL CGridCtrl::GetCellRangeRect | ( | const CCellRange & | cellRange, | |
LPRECT | lpRect | |||
) | [protected] |
Definition at line 3058 of file GridCtrl.cpp.
References FALSE, GetCellOrigin(), GetColumnWidth(), CCellRange::GetMaxCol(), CCellRange::GetMaxRow(), CCellRange::GetMinCol(), CCellRange::GetMinRow(), GetRowHeight(), and TRUE.
Referenced by InvalidateCellRect().
BOOL CGridCtrl::GetCellRect | ( | const CCellID & | cell, | |
LPRECT | pRect | |||
) |
Definition at line 3017 of file GridCtrl.cpp.
References CCellID::col, GetCellRect(), and CCellID::row.
BOOL CGridCtrl::GetCellRect | ( | int | nRow, | |
int | nCol, | |||
LPRECT | pRect | |||
) |
Definition at line 3022 of file GridCtrl.cpp.
References FALSE, GetCellOrigin(), GetColumnWidth(), GetRowHeight(), and TRUE.
Referenced by CreateDragImage(), EnsureVisible(), GetCellRect(), GetTextRect(), InvalidateCellRect(), OnEditCell(), OnMouseMove(), and RedrawCell().
CSize CGridCtrl::GetCellTextExtent | ( | int | nRow, | |
int | nCol | |||
) | [inline] |
int CGridCtrl::GetColumnCount | ( | ) | const [inline] |
Definition at line 199 of file GridCtrl.h.
References m_nCols.
Referenced by AutoSize(), AutoSizeColumns(), AutoSizeRow(), DeleteColumn(), DeleteRow(), ExpandColumnsToFit(), ExpandLastColumn(), GetCellFromPt(), GetCellRange(), GetNextItem(), GetSelectedCellRange(), GetTopleftNonFixedCell(), GetUnobstructedNonFixedCellRange(), GetVirtualWidth(), InsertColumn(), OnBeginPrinting(), OnHScroll(), OnKeyDown(), OnLButtonDown(), OnPrint(), PasteTextToGrid(), PrintColumnHeadings(), RedrawRow(), Save(), SelectAllCells(), SelectRows(), SetColumnCount(), SetFixedColumnCount(), SetFixedRowCount(), SetModified(), SortItems(), and SortTextItems().
BOOL CGridCtrl::GetColumnHide | ( | ) | [inline] |
BOOL CGridCtrl::GetColumnResize | ( | ) | const [inline] |
int CGridCtrl::GetColumnWidth | ( | int | nCol | ) | const |
Definition at line 4482 of file GridCtrl.cpp.
References ASSERT, m_arColWidths, and m_nCols.
Referenced by AutoSize(), AutoSizeColumn(), AutoSizeColumns(), EnsureVisible(), GetCellFromPt(), GetCellOrigin(), GetCellRangeRect(), GetCellRect(), GetFixedColumnWidth(), GetTopleftNonFixedCell(), GetUnobstructedNonFixedCellRange(), IsCellVisible(), MouseOverColumnResizeArea(), OnBeginPrinting(), OnDraw(), OnHScroll(), OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), OnPrint(), PasteTextToGrid(), PrintColumnHeadings(), and PrintRowButtons().
CGridCellBase * CGridCtrl::GetDefaultCell | ( | BOOL | bFixedRow, | |
BOOL | bFixedCol | |||
) | const [inline] |
Definition at line 750 of file GridCtrl.h.
References m_cellDefault, m_cellFixedColDef, m_cellFixedRowColDef, and m_cellFixedRowDef.
Referenced by CreateDragImage(), EraseBkgnd(), GetCell(), CGridCellBase::GetDefaultCell(), GetItemFont(), and OnSysColorChange().
int CGridCtrl::GetDefCellHeight | ( | ) | const [inline] |
Definition at line 264 of file GridCtrl.h.
References CGridDefaultCell::GetHeight(), and m_cellDefault.
int CGridCtrl::GetDefCellMargin | ( | ) | const [inline] |
int CGridCtrl::GetDefCellWidth | ( | ) | const [inline] |
Definition at line 269 of file GridCtrl.h.
References CGridDefaultCell::GetWidth(), and m_cellDefault.
BOOL CGridCtrl::GetDoubleBuffering | ( | ) | const [inline] |
BOOL CGridCtrl::GetDragAndDrop | ( | ) | const [inline] |
COLORREF CGridCtrl::GetFixedBkColor | ( | ) | const [inline] |
Definition at line 252 of file GridCtrl.h.
References CGridCell::GetBackClr(), and m_cellFixedRowDef.
int CGridCtrl::GetFixedColumnCount | ( | ) | const [inline] |
Definition at line 201 of file GridCtrl.h.
References m_nFixedCols.
Referenced by GetCell(), GetItemFont(), GetNextItem(), IsCellFixed(), IsCellVisible(), OnBeginPrinting(), OnFixedRowClick(), OnHScroll(), OnLButtonDblClk(), OnLButtonDown(), OnPrint(), PrintRowButtons(), SelectRows(), SetFixedRowCount(), SetFocusCell(), and SetSelectedRange().
BOOL CGridCtrl::GetFixedColumnSelection | ( | ) | [inline] |
Definition at line 307 of file GridCtrl.h.
References m_bFixedColumnSelection.
Referenced by OnFixedColumnClick().
int CGridCtrl::GetFixedColumnWidth | ( | ) | const |
Definition at line 4524 of file GridCtrl.cpp.
References GetColumnWidth(), and m_nFixedCols.
Referenced by EnsureVisible(), EraseBkgnd(), GetCellFromPt(), GetUnobstructedNonFixedCellRange(), IsCellVisible(), MouseOverRowResizeArea(), OnDraw(), OnHScroll(), OnTimer(), and ResetScrollBars().
int CGridCtrl::GetFixedRowCount | ( | ) | const [inline] |
Definition at line 200 of file GridCtrl.h.
References m_nFixedRows.
Referenced by AutoSize(), AutoSizeColumn(), DeleteNonFixedRows(), GetCell(), GetItemFont(), GetNextItem(), IsCellFixed(), IsCellVisible(), OnBeginPrinting(), OnFixedColumnClick(), OnLButtonDown(), OnPrint(), OnVScroll(), PrintColumnHeadings(), SelectColumns(), SetFixedColumnCount(), SetFocusCell(), SetSelectedRange(), SortItems(), and SortTextItems().
int CGridCtrl::GetFixedRowHeight | ( | ) | const |
Definition at line 4515 of file GridCtrl.cpp.
References GetRowHeight(), and m_nFixedRows.
Referenced by EnsureVisible(), EraseBkgnd(), GetCellFromPt(), GetUnobstructedNonFixedCellRange(), GetVisibleNonFixedCellRange(), IsCellVisible(), MouseOverColumnResizeArea(), OnBeginPrinting(), OnDraw(), OnPrint(), OnTimer(), OnVScroll(), and ResetScrollBars().
BOOL CGridCtrl::GetFixedRowSelection | ( | ) | [inline] |
Definition at line 309 of file GridCtrl.h.
References m_bFixedRowSelection.
Referenced by OnFixedRowClick().
COLORREF CGridCtrl::GetFixedTextColor | ( | ) | const [inline] |
Definition at line 248 of file GridCtrl.h.
References CGridCell::GetBackClr(), and m_cellFixedRowDef.
CCellID CGridCtrl::GetFocusCell | ( | ) | const [inline] |
Definition at line 281 of file GridCtrl.h.
References m_idCurrentCell.
Referenced by CreateDragImage(), CGridCellBase::Draw(), EndEditing(), GetCell(), OnEditPaste(), OnMouseMove(), and OnUpdateEditPaste().
BOOL CGridCtrl::GetFrameFocusCell | ( | ) | [inline] |
Definition at line 331 of file GridCtrl.h.
References m_bFrameFocus.
Referenced by CGridCellBase::Draw().
COLORREF CGridCtrl::GetGridBkColor | ( | ) | const [inline] |
Definition at line 230 of file GridCtrl.h.
References m_crGridBkColour.
Referenced by EraseBkgnd(), GetBkColor(), and OnSysColorChange().
COLORREF CGridCtrl::GetGridColor | ( | ) | [inline] |
COLORREF CGridCtrl::GetGridLineColor | ( | ) | const [inline] |
Definition at line 232 of file GridCtrl.h.
References m_crGridLineColour.
Referenced by GetGridColor().
int CGridCtrl::GetGridLines | ( | ) | const [inline] |
Definition at line 295 of file GridCtrl.h.
References m_nGridLines.
Referenced by CGridCellBase::Draw(), and CGridCellBase::PrintCell().
BOOL CGridCtrl::GetHandleTabKey | ( | ) | const [inline] |
BOOL CGridCtrl::GetHeaderSort | ( | ) | const [inline] |
Definition at line 317 of file GridCtrl.h.
References m_bSortOnClick.
Referenced by OnFixedRowClick().
BOOL CGridCtrl::GetHiddenColUnhide | ( | ) | [inline] |
BOOL CGridCtrl::GetHiddenRowUnhide | ( | ) | [inline] |
CImageList* CGridCtrl::GetImageList | ( | ) | const [inline] |
Definition at line 292 of file GridCtrl.h.
References m_pImageList.
Referenced by CGridCellBase::Draw(), CGridCellBase::GetCellExtent(), CGridCellBase::GetTextRect(), and CGridCellBase::PrintCell().
BOOL CGridCtrl::GetItem | ( | GV_ITEM * | pItem | ) |
Definition at line 4153 of file GridCtrl.cpp.
References _GV_ITEM::col, _GV_ITEM::crBkClr, _GV_ITEM::crFgClr, FALSE, CGridCellBase::GetBackClr(), GetCell(), CGridCellBase::GetData(), CGridCellBase::GetFont(), CGridCellBase::GetFormat(), CGridCellBase::GetImage(), GetItemText(), CGridCellBase::GetMargin(), CGridCellBase::GetState(), CGridCellBase::GetTextClr(), GVIF_BKCLR, GVIF_FGCLR, GVIF_FONT, GVIF_FORMAT, GVIF_IMAGE, GVIF_MARGIN, GVIF_PARAM, GVIF_STATE, GVIF_TEXT, _GV_ITEM::iImage, _GV_ITEM::lfFont, _GV_ITEM::lParam, _GV_ITEM::mask, _GV_ITEM::nFormat, _GV_ITEM::nMargin, _GV_ITEM::nState, _GV_ITEM::row, _GV_ITEM::strText, and TRUE.
COLORREF CGridCtrl::GetItemBkColour | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 4381 of file GridCtrl.cpp.
References ASSERT, CGridCellBase::GetBackClr(), and GetCell().
LPARAM CGridCtrl::GetItemData | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 4265 of file GridCtrl.cpp.
References GetCell(), and CGridCellBase::GetData().
Referenced by SortItems().
COLORREF CGridCtrl::GetItemFgColour | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 4405 of file GridCtrl.cpp.
References ASSERT, GetCell(), and CGridCellBase::GetTextClr().
const LOGFONT * CGridCtrl::GetItemFont | ( | int | nRow, | |
int | nCol | |||
) |
Definition at line 4430 of file GridCtrl.cpp.
References ASSERT, GetCell(), GetDefaultCell(), GetFixedColumnCount(), GetFixedRowCount(), and CGridCellBase::GetFont().
UINT CGridCtrl::GetItemFormat | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 4357 of file GridCtrl.cpp.
References ASSERT, GetCell(), and CGridCellBase::GetFormat().
Referenced by CreateCell().
int CGridCtrl::GetItemImage | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 4288 of file GridCtrl.cpp.
References ASSERT, GetCell(), and CGridCellBase::GetImage().
UINT CGridCtrl::GetItemState | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 4333 of file GridCtrl.cpp.
References ASSERT, GetCell(), and CGridCellBase::GetState().
Referenced by GetModified(), GetNextItem(), IsCellEditable(), IsCellSelected(), OnDragEnter(), OnDragLeave(), OnDragOver(), PasteTextToGrid(), SetFixedColumnCount(), SetFixedRowCount(), SetFocusCell(), SetModified(), and SetSelectedRange().
CString CGridCtrl::GetItemText | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 6786 of file GridCtrl.cpp.
References ASSERT, GetCell(), CGridCellBase::GetText(), m_nCols, and m_nRows.
Referenced by GetItem(), OnEndEditCell(), Save(), and SortTextItems().
BOOL CGridCtrl::GetListMode | ( | ) | const [inline] |
BOOL CGridCtrl::GetModified | ( | int | nRow = -1 , |
|
int | nCol = -1 | |||
) |
Definition at line 4868 of file GridCtrl.cpp.
References GetItemState(), GVIS_MODIFIED, and m_bModified.
int CGridCtrl::GetMouseMode | ( | ) | const [inline, protected] |
Definition at line 3835 of file GridCtrl.cpp.
References CCellID::col, GetColumnCount(), GetFixedColumnCount(), GetFixedRowCount(), GetItemState(), GetRowCount(), GVIS_DROPHILITED, GVIS_FIXED, GVIS_FOCUSED, GVIS_MODIFIED, GVIS_READONLY, GVIS_SELECTED, GVNI_ABOVE, GVNI_ALL, GVNI_BELOW, GVNI_DROPHILITED, GVNI_FIXED, GVNI_FOCUSED, GVNI_MODIFIED, GVNI_READONLY, GVNI_SELECTED, GVNI_TOLEFT, GVNI_TORIGHT, and CCellID::row.
CPoint CGridCtrl::GetPointClicked | ( | int | nRow, | |
int | nCol, | |||
const CPoint & | point | |||
) | [protected] |
Definition at line 5318 of file GridCtrl.cpp.
References GetCellOrigin().
Referenced by OnLButtonDblClk(), OnLButtonDown(), OnLButtonUp(), and OnRButtonUp().
void CGridCtrl::GetPrintMarginInfo | ( | int & | nHeaderHeight, | |
int & | nFooterHeight, | |||
int & | nLeftMargin, | |||
int & | nRightMargin, | |||
int & | nTopMargin, | |||
int & | nBottomMargin, | |||
int & | nGap | |||
) |
Definition at line 5881 of file GridCtrl.cpp.
References m_nBottomMargin, m_nFooterHeight, m_nGap, m_nHeaderHeight, m_nLeftMargin, m_nRightMargin, and m_nTopMargin.
int CGridCtrl::GetRowCount | ( | ) | const [inline] |
Definition at line 198 of file GridCtrl.h.
References m_nRows.
Referenced by AutoSize(), AutoSizeColumn(), AutoSizeRows(), DeleteColumn(), DeleteNonFixedRows(), DeleteRow(), ExpandRowsToFit(), GetCellFromPt(), GetCellRange(), GetNextItem(), GetSelectedCellRange(), GetTopleftNonFixedCell(), GetUnobstructedNonFixedCellRange(), GetVirtualHeight(), GetVisibleNonFixedCellRange(), CSettingsDlgBar::initGrid(), InsertRow(), OnBeginPrinting(), OnKeyDown(), OnLButtonDown(), OnPrint(), CSettingsDlgBar::OnSize(), OnVScroll(), PasteTextToGrid(), PrintRowButtons(), RedrawColumn(), Save(), SelectAllCells(), SelectColumns(), SetFixedColumnCount(), SetFixedRowCount(), SetModified(), SetRowCount(), SortItems(), and SortTextItems().
int CGridCtrl::GetRowHeight | ( | int | nRow | ) | const |
Definition at line 4473 of file GridCtrl.cpp.
References ASSERT, m_arRowHeights, and m_nRows.
Referenced by AutoSize(), AutoSizeRow(), AutoSizeRows(), EnsureVisible(), GetCellFromPt(), GetCellOrigin(), GetCellRangeRect(), GetCellRect(), GetFixedRowHeight(), GetTopleftNonFixedCell(), GetUnobstructedNonFixedCellRange(), GetVisibleNonFixedCellRange(), IsCellVisible(), MouseOverRowResizeArea(), OnBeginPrinting(), OnDraw(), OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), OnPrint(), OnVScroll(), PasteTextToGrid(), PrintColumnHeadings(), and PrintRowButtons().
BOOL CGridCtrl::GetRowHide | ( | ) | [inline] |
BOOL CGridCtrl::GetRowResize | ( | ) | const [inline] |
int CGridCtrl::GetScrollPos32 | ( | int | nBar, | |
BOOL | bGetTrackPos = FALSE | |||
) | [protected] |
CCellRange CGridCtrl::GetSelectedCellRange | ( | ) | const |
Definition at line 2772 of file GridCtrl.cpp.
References CCellID::col, GetColumnCount(), CCellRange::GetMaxCol(), CCellRange::GetMaxRow(), CCellRange::GetMinCol(), CCellRange::GetMinRow(), GetRowCount(), m_SelectedCellMap, max, min, CCellID::row, CCellRange::SetMaxCol(), CCellRange::SetMaxRow(), CCellRange::SetMinCol(), and CCellRange::SetMinRow().
Referenced by CopyTextFromGrid(), OnBeginDrag(), OnUpdateEditCopy(), and OnUpdateEditCut().
int CGridCtrl::GetSelectedCount | ( | ) | const [inline] |
BOOL CGridCtrl::GetShadedPrintOut | ( | void | ) | [inline] |
Definition at line 489 of file GridCtrl.h.
References m_bShadedPrintOut.
Referenced by CGridCellBase::PrintCell().
BOOL CGridCtrl::GetSingleColSelection | ( | ) | [inline] |
Definition at line 303 of file GridCtrl.h.
References m_bSingleColSelection.
Referenced by SelectColumns().
BOOL CGridCtrl::GetSingleRowSelection | ( | ) | [inline] |
Definition at line 301 of file GridCtrl.h.
References m_bListMode, and m_bSingleRowSelection.
Referenced by SelectRows(), and SetSelectedRange().
BOOL CGridCtrl::GetSortAscending | ( | ) | const [inline] |
Definition at line 327 of file GridCtrl.h.
References m_bAscending.
Referenced by CGridCellBase::Draw(), and OnFixedRowClick().
int CGridCtrl::GetSortColumn | ( | ) | const [inline] |
Definition at line 325 of file GridCtrl.h.
References m_nSortColumn.
Referenced by CGridCellBase::Draw(), OnFixedRowClick(), and SetModified().
COLORREF CGridCtrl::GetTextBkColor | ( | ) | [inline] |
COLORREF CGridCtrl::GetTextColor | ( | ) | [inline] |
CSize CGridCtrl::GetTextExtent | ( | int | nRow, | |
int | nCol, | |||
LPCTSTR | str | |||
) |
Definition at line 6724 of file GridCtrl.cpp.
References GetCell(), and CGridCellBase::GetTextExtent().
Referenced by GetCellTextExtent(), InsertColumn(), and InsertRow().
BOOL CGridCtrl::GetTextRect | ( | int | nRow, | |
int | nCol, | |||
LPRECT | pRect | |||
) |
Definition at line 3045 of file GridCtrl.cpp.
References FALSE, GetCell(), GetCellRect(), and CGridCellBase::GetTextRect().
BOOL CGridCtrl::GetTextRect | ( | const CCellID & | cell, | |
LPRECT | pRect | |||
) |
COLORREF CGridCtrl::GetTitleTipBackClr | ( | ) | [inline] |
BOOL CGridCtrl::GetTitleTips | ( | ) | [inline] |
COLORREF CGridCtrl::GetTitleTipTextClr | ( | ) | [inline] |
CCellID CGridCtrl::GetTopleftNonFixedCell | ( | ) | [protected] |
Definition at line 2668 of file GridCtrl.cpp.
References CCellID::col, GetColumnCount(), GetColumnWidth(), GetRowCount(), GetRowHeight(), CCellID::IsValid(), m_idTopLeftCell, m_nFixedCols, m_nFixedRows, and CCellID::row.
Referenced by GetCellFromPt(), GetCellOrigin(), GetUnobstructedNonFixedCellRange(), GetVisibleNonFixedCellRange(), IsCellVisible(), OnDraw(), OnEditPaste(), OnHScroll(), OnKeyDown(), and OnVScroll().
BOOL CGridCtrl::GetTrackFocusCell | ( | ) | [inline] |
Definition at line 329 of file GridCtrl.h.
References m_bTrackFocusCell.
Referenced by CGridCellBase::Draw(), and SetFocusCell().
CCellRange CGridCtrl::GetUnobstructedNonFixedCellRange | ( | ) | [protected] |
Definition at line 2735 of file GridCtrl.cpp.
References CCellID::col, GetColumnCount(), GetColumnWidth(), GetFixedColumnWidth(), GetFixedRowHeight(), GetRowCount(), GetRowHeight(), GetTopleftNonFixedCell(), min, and CCellID::row.
long CGridCtrl::GetVirtualHeight | ( | ) | const |
Definition at line 4463 of file GridCtrl.cpp.
References GetRowCount(), and m_arRowHeights.
Referenced by ExpandLastColumn(), ExpandRowsToFit(), and ResetScrollBars().
BOOL CGridCtrl::GetVirtualMode | ( | ) | const [inline] |
Definition at line 285 of file GridCtrl.h.
References m_bVirtualMode.
Referenced by CreateCell(), DeleteAllItems(), DeleteColumn(), DeleteRow(), DestroyCell(), GetCell(), InsertColumn(), InsertRow(), IsCellSelected(), Load(), OnDraw(), OnMouseMove(), OnSetCursor(), SetCell(), SetCellType(), SetColumnCount(), SetFixedColumnCount(), SetFixedRowCount(), SetItem(), SetItemBkColour(), SetItemData(), SetItemFgColour(), SetItemFont(), SetItemFormat(), SetItemImage(), SetItemState(), SetItemText(), and SetRowCount().
long CGridCtrl::GetVirtualWidth | ( | ) | const |
Definition at line 4453 of file GridCtrl.cpp.
References GetColumnCount(), and m_arColWidths.
Referenced by ExpandColumnsToFit(), ExpandLastColumn(), OnBeginPrinting(), and ResetScrollBars().
CCellRange CGridCtrl::GetVisibleNonFixedCellRange | ( | LPRECT | pRect = NULL |
) | [protected] |
Definition at line 2692 of file GridCtrl.cpp.
References GetFixedRowHeight(), GetRowCount(), GetRowHeight(), GetTopleftNonFixedCell(), and CCellID::row.
Referenced by EnsureVisible(), EraseBkgnd(), InvalidateCellRect(), and OnDraw().
BOOL CGridCtrl::GetWysiwygPrinting | ( | ) | [inline] |
BOOL CGridCtrl::Initialise | ( | ) | [protected] |
Definition at line 368 of file GridCtrl.cpp.
References BOOL(), FALSE, m_DropTarget, m_TitleTip, CGridDropTarget::Register(), CTitleTip::SetParentWnd(), and TRUE.
Referenced by PreSubclassWindow().
int CGridCtrl::InsertColumn | ( | LPCTSTR | strHeading, | |
UINT | nFormat = DT_CENTER|DT_VCENTER|DT_SINGLELINE , |
|||
int | nColumn = -1 | |||
) |
Definition at line 3434 of file GridCtrl.cpp.
References ASSERT, CCellID::col, CreateCell(), e, FALSE, GetColumnCount(), GetTextExtent(), GetVirtualMode(), m_arColWidths, m_idCurrentCell, m_idTopLeftCell, m_nCols, m_nFixedCols, m_nRows, m_RowData, ResetScrollBars(), ResetSelectedRange(), SetItemFormat(), SetItemText(), SetModified(), and SetRowCount().
Referenced by Load().
int CGridCtrl::InsertRow | ( | LPCTSTR | strHeading, | |
int | nRow = -1 | |||
) |
Definition at line 3525 of file GridCtrl.cpp.
References ASSERT, CCellID::col, CreateCell(), e, FALSE, CGridDefaultCell::GetHeight(), GetRowCount(), GetTextExtent(), GetVirtualMode(), m_arRowHeights, m_cellFixedRowDef, m_idCurrentCell, m_idTopLeftCell, m_nCols, m_nFixedRows, m_nRows, m_RowData, ResetScrollBars(), ResetSelectedRange(), CCellID::row, SetColumnCount(), SetItemText(), and SetModified().
Referenced by Load().
BOOL CGridCtrl::InvalidateCellRect | ( | const CCellRange & | cellRange | ) | [protected] |
Definition at line 5088 of file GridCtrl.cpp.
References ASSERT, FALSE, GetCellRangeRect(), GetVisibleNonFixedCellRange(), CCellRange::Intersect(), IsValid(), m_bAllowDraw, and TRUE.
BOOL CGridCtrl::InvalidateCellRect | ( | const CCellID & | cell | ) | [protected] |
Definition at line 5062 of file GridCtrl.cpp.
References CCellID::col, InvalidateCellRect(), and CCellID::row.
BOOL CGridCtrl::InvalidateCellRect | ( | const int | row, | |
const int | col | |||
) | [protected] |
Definition at line 5067 of file GridCtrl.cpp.
References FALSE, GetCellRect(), IsCellVisible(), IsValid(), m_bAllowDraw, and TRUE.
Referenced by InvalidateCellRect(), SetSelectedRange(), and SetSortColumn().
BOOL CGridCtrl::IsCellEditable | ( | CCellID & | cell | ) | const |
Definition at line 4960 of file GridCtrl.cpp.
References CCellID::col, IsCellEditable(), and CCellID::row.
BOOL CGridCtrl::IsCellEditable | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 4965 of file GridCtrl.cpp.
References GetItemState(), GVIS_READONLY, and IsEditable().
Referenced by CutSelectedText(), CGridCellCombo::Draw(), IsCellEditable(), OnDragEnter(), OnDragOver(), OnDrop(), OnEditCell(), OnKeyDown(), OnLButtonDown(), OnUpdateEditPaste(), and PasteTextToGrid().
BOOL CGridCtrl::IsCellFixed | ( | int | nRow, | |
int | nCol | |||
) |
Definition at line 4836 of file GridCtrl.cpp.
References GetFixedColumnCount(), and GetFixedRowCount().
BOOL CGridCtrl::IsCellSelected | ( | CCellID & | cell | ) | const |
Definition at line 4970 of file GridCtrl.cpp.
References CCellID::col, IsCellSelected(), and CCellID::row.
BOOL CGridCtrl::IsCellSelected | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 4975 of file GridCtrl.cpp.
References FALSE, GetItemState(), GetVirtualMode(), GVIS_SELECTED, IsSelectable(), and m_SelectedCellMap.
Referenced by GetCell(), IsCellSelected(), OnLButtonDown(), and SetItemState().
BOOL CGridCtrl::IsCellVisible | ( | CCellID | cell | ) |
Definition at line 4991 of file GridCtrl.cpp.
References CCellID::col, IsCellVisible(), and CCellID::row.
BOOL CGridCtrl::IsCellVisible | ( | int | nRow, | |
int | nCol | |||
) |
Definition at line 4996 of file GridCtrl.cpp.
References CCellID::col, FALSE, GetColumnWidth(), GetFixedColumnCount(), GetFixedColumnWidth(), GetFixedRowCount(), GetFixedRowHeight(), GetRowHeight(), GetTopleftNonFixedCell(), and CCellID::row.
Referenced by InvalidateCellRect(), IsCellVisible(), OnEditCell(), OnKeyDown(), and RedrawCell().
BOOL CGridCtrl::IsEditable | ( | ) | const [inline] |
Definition at line 297 of file GridCtrl.h.
References m_bEditable.
Referenced by CutSelectedText(), IsCellEditable(), OnDragOver(), OnEditCut(), OnEditPaste(), and OnUpdateEditCut().
BOOL CGridCtrl::IsItemEditing | ( | int | nRow, | |
int | nCol | |||
) |
Definition at line 4440 of file GridCtrl.cpp.
References ASSERT, FALSE, GetCell(), and CGridCellBase::IsEditing().
BOOL CGridCtrl::IsSelectable | ( | ) | const [inline] |
Definition at line 305 of file GridCtrl.h.
References m_bEnableSelection.
Referenced by IsCellSelected().
BOOL CGridCtrl::IsValid | ( | const CCellRange & | range | ) | const |
Definition at line 1687 of file GridCtrl.cpp.
References CCellRange::GetMaxCol(), CCellRange::GetMaxRow(), CCellRange::GetMinCol(), CCellRange::GetMinRow(), m_nCols, and m_nRows.
BOOL CGridCtrl::IsValid | ( | const CCellID & | cell | ) | const |
BOOL CGridCtrl::IsValid | ( | int | nRow, | |
int | nCol | |||
) | const |
Definition at line 1675 of file GridCtrl.cpp.
References m_nCols.
Referenced by CopyTextFromGrid(), CGridCellBase::Draw(), EndEditing(), GetCellFromPt(), GetCellOrigin(), InvalidateCellRect(), IsValid(), OnDragEnter(), OnDragLeave(), OnDragOver(), OnEditCell(), OnEditPaste(), OnFixedColumnClick(), OnFixedRowClick(), OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnRButtonUp(), OnSetCursor(), OnUpdateEditCopy(), OnUpdateEditCut(), OnUpdateEditPaste(), PasteTextToGrid(), SelectCells(), SelectColumns(), SelectRows(), SetCellType(), SetFocusCell(), and SetSelectedRange().
BOOL CGridCtrl::IsVisibleHScroll | ( | ) | [inline, protected] |
Definition at line 542 of file GridCtrl.h.
References GVL_HORZ, and m_nBarState.
Referenced by EnableScrollBars(), and ResetScrollBars().
BOOL CGridCtrl::IsVisibleVScroll | ( | ) | [inline, protected] |
Definition at line 541 of file GridCtrl.h.
References GVL_VERT, and m_nBarState.
Referenced by EnableScrollBars(), and ResetScrollBars().
BOOL CGridCtrl::Load | ( | LPCTSTR | filename | ) |
Definition at line 6508 of file GridCtrl.cpp.
References AutoSizeColumns(), buffer, DeleteAllItems(), e, FALSE, GetAutoSizeStyle(), GetVirtualMode(), InsertColumn(), InsertRow(), SetItemText(), and TRUE.
BOOL CGridCtrl::MouseOverColumnResizeArea | ( | CPoint & | point | ) | [protected] |
Definition at line 2568 of file GridCtrl.cpp.
References CCellID::col, FALSE, GetCellFromPt(), GetCellOrigin(), GetColumnWidth(), GetFixedRowHeight(), m_nResizeCaptureRange, and TRUE.
Referenced by OnLButtonDblClk(), OnLButtonDown(), and OnMouseMove().
BOOL CGridCtrl::MouseOverRowResizeArea | ( | CPoint & | point | ) | [protected] |
Definition at line 2546 of file GridCtrl.cpp.
References FALSE, GetCellFromPt(), GetCellOrigin(), GetFixedColumnWidth(), GetRowHeight(), m_nResizeCaptureRange, CCellID::row, and TRUE.
Referenced by OnLButtonDblClk(), OnLButtonDown(), and OnMouseMove().
void CGridCtrl::OnBeginDrag | ( | ) |
Definition at line 2332 of file GridCtrl.cpp.
References CopyTextFromGrid(), CutSelectedText(), GetSelectedCellRange(), GVN_BEGINDRAG, m_bAllowDragAndDrop, m_MouseMode, MOUSE_DRAGGING, and SendMessageToParent().
Referenced by OnMouseMove().
void CGridCtrl::OnBeginPrinting | ( | CDC * | pDC, | |
CPrintInfo * | pInfo | |||
) | [virtual] |
Definition at line 5953 of file GridCtrl.cpp.
References ASSERT, GetColumnCount(), GetColumnWidth(), GetFixedColumnCount(), GetFixedRowCount(), GetFixedRowHeight(), GetRowCount(), GetRowHeight(), GetVirtualWidth(), m_bWysiwygPrinting, m_CharSize, m_LogicalPageSize, m_nFooterHeight, m_nGap, m_nHeaderHeight, m_nLeftMargin, m_nNumPages, m_nPageHeight, m_nPageMultiplier, m_nPageWidth, m_nRightMargin, m_PaperSize, and m_PrinterFont.
Referenced by Print().
void CGridCtrl::OnCaptureChanged | ( | CWnd * | pWnd | ) | [protected] |
Definition at line 721 of file GridCtrl.cpp.
References m_MouseMode, m_nTimerID, MOUSE_DRAGGING, and MOUSE_NOTHING.
void CGridCtrl::OnChar | ( | UINT | nChar, | |
UINT | nRepCnt, | |||
UINT | nFlags | |||
) | [protected] |
Definition at line 1207 of file GridCtrl.cpp.
References CCellID::col, IsCTRLpressed, m_bHandleTabKey, m_idCurrentCell, m_MouseMode, MOUSE_NOTHING, OnEditCell(), and CCellID::row.
DROPEFFECT CGridCtrl::OnDragEnter | ( | COleDataObject * | pDataObject, | |
DWORD | dwKeyState, | |||
CPoint | point | |||
) |
Definition at line 2409 of file GridCtrl.cpp.
References CCellID::col, FALSE, GetCellFromPt(), GetItemState(), GVIS_DROPHILITED, IsCellEditable(), IsValid(), m_bAllowDragAndDrop, m_LastDragOverCell, RedrawCell(), CCellID::row, and SetItemState().
Referenced by CGridDropTarget::OnDragEnter().
void CGridCtrl::OnDragLeave | ( | ) |
Definition at line 2440 of file GridCtrl.cpp.
References CCellID::col, GetItemState(), GVIS_DROPHILITED, IsValid(), m_LastDragOverCell, RedrawCell(), CCellID::row, and SetItemState().
Referenced by CGridDropTarget::OnDragLeave(), OnDragOver(), and OnDrop().
DROPEFFECT CGridCtrl::OnDragOver | ( | COleDataObject * | pDataObject, | |
DWORD | dwKeyState, | |||
CPoint | point | |||
) |
Definition at line 2356 of file GridCtrl.cpp.
References FALSE, GetCellFromPt(), GetItemState(), GVIS_DROPHILITED, IsCellEditable(), IsEditable(), IsValid(), m_bAllowDragAndDrop, m_LastDragOverCell, OnDragLeave(), RedrawCell(), and SetItemState().
Referenced by CGridDropTarget::OnDragOver().
void CGridCtrl::OnDraw | ( | CDC * | pDC | ) | [protected, virtual] |
Definition at line 1496 of file GridCtrl.cpp.
References CCellID::col, CGridCellBase::Draw(), EraseBkgnd(), FALSE, GetCell(), GetColumnWidth(), GetFixedColumnWidth(), GetFixedRowHeight(), CCellRange::GetMaxCol(), CCellRange::GetMaxRow(), GetRowHeight(), GetTopleftNonFixedCell(), GetVirtualMode(), GetVisibleNonFixedCellRange(), GVL_BOTH, GVL_HORZ, GVL_VERT, m_bAllowDraw, m_crGridLineColour, m_nFixedCols, m_nFixedRows, m_nGridLines, CCellID::row, and SendCacheHintToParent().
BOOL CGridCtrl::OnDrop | ( | COleDataObject * | pDataObject, | |
DROPEFFECT | dropEffect, | |||
CPoint | point | |||
) |
Definition at line 2453 of file GridCtrl.cpp.
References FALSE, IsCellEditable(), m_bAllowDragAndDrop, m_LastDragOverCell, m_MouseMode, MOUSE_NOTHING, OnDragLeave(), and PasteTextToGrid().
Referenced by CGridDropTarget::OnDrop().
void CGridCtrl::OnEditCell | ( | int | nRow, | |
int | nCol, | |||
CPoint | point, | |||
UINT | nChar | |||
) | [protected, virtual] |
Definition at line 6733 of file GridCtrl.cpp.
References CGridCellBase::Edit(), EnsureVisible(), GetCell(), GetCellRect(), GVN_BEGINLABELEDIT, CTitleTip::Hide(), IDC_INPLACE_CONTROL, IsCellEditable(), IsCellVisible(), IsValid(), m_TitleTip, and SendMessageToParent().
Referenced by OnChar(), OnEndInPlaceEdit(), OnKeyDown(), OnLButtonDblClk(), and OnLButtonUp().
void CGridCtrl::OnEditCopy | ( | ) | [virtual] |
Definition at line 2480 of file GridCtrl.cpp.
References CopyTextFromGrid().
Referenced by OnKeyDown().
void CGridCtrl::OnEditCut | ( | ) | [virtual] |
Definition at line 2467 of file GridCtrl.cpp.
References CopyTextFromGrid(), CutSelectedText(), and IsEditable().
Referenced by OnKeyDown().
void CGridCtrl::OnEditPaste | ( | ) | [virtual] |
Definition at line 2489 of file GridCtrl.cpp.
References GetFocusCell(), GetTopleftNonFixedCell(), IsEditable(), IsValid(), and PasteTextToGrid().
Referenced by OnKeyDown().
void CGridCtrl::OnEditSelectAll | ( | ) | [virtual] |
Definition at line 2508 of file GridCtrl.cpp.
References SelectAllCells().
Referenced by OnKeyDown().
void CGridCtrl::OnEndEditCell | ( | int | nRow, | |
int | nCol, | |||
CString | str | |||
) | [protected, virtual] |
Definition at line 6772 of file GridCtrl.cpp.
References GetCell(), GetItemText(), CGridCellBase::OnEndEdit(), SetItemText(), SetModified(), and TRUE.
Referenced by OnEndInPlaceEdit().
void CGridCtrl::OnEndInPlaceEdit | ( | NMHDR * | pNMHDR, | |
LRESULT * | pResult | |||
) | [protected] |
Definition at line 1222 of file GridCtrl.cpp.
References CCellID::col, _GV_ITEM::col, GVN_ENDLABELEDIT, tagGV_DISPINFO::item, _GV_ITEM::lParam, m_idCurrentCell, OnEditCell(), OnEndEditCell(), OnKeyDown(), CCellID::row, _GV_ITEM::row, SendMessageToParent(), and _GV_ITEM::strText.
void CGridCtrl::OnEndPrinting | ( | CDC * | pDC, | |
CPrintInfo * | pInfo | |||
) | [virtual] |
BOOL CGridCtrl::OnEraseBkgnd | ( | CDC * | pDC | ) | [protected] |
void CGridCtrl::OnFixedColumnClick | ( | CCellID & | cell | ) | [protected, virtual] |
Definition at line 6696 of file GridCtrl.cpp.
References GetFixedColumnSelection(), GetFixedRowCount(), IsValid(), m_MouseMode, MOUSE_SELECT_ALL, MOUSE_SELECT_ROW, OnSelecting(), and CCellID::row.
Referenced by OnLButtonDown().
void CGridCtrl::OnFixedRowClick | ( | CCellID & | cell | ) | [protected, virtual] |
Definition at line 6666 of file GridCtrl.cpp.
References CCellID::col, GetFixedColumnCount(), GetFixedRowSelection(), GetHeaderSort(), GetSortAscending(), GetSortColumn(), IsValid(), m_MouseMode, MOUSE_SELECT_ALL, MOUSE_SELECT_COL, OnSelecting(), SortTextItems(), and TRUE.
Referenced by OnLButtonDown().
UINT CGridCtrl::OnGetDlgCode | ( | ) | [protected] |
LRESULT CGridCtrl::OnGetFont | ( | WPARAM | hFont, | |
LPARAM | lParam | |||
) | [protected] |
Definition at line 3097 of file GridCtrl.cpp.
References CGridDefaultCell::GetFontObject(), and m_cellDefault.
void CGridCtrl::OnHScroll | ( | UINT | nSBCode, | |
UINT | nPos, | |||
CScrollBar * | pScrollBar | |||
) | [protected] |
Definition at line 1255 of file GridCtrl.cpp.
References CCellID::col, EndEditing(), GetColumnCount(), GetColumnWidth(), GetFixedColumnCount(), GetFixedColumnWidth(), GetScrollPos32(), GetTopleftNonFixedCell(), CTitleTip::Hide(), m_idTopLeftCell, m_nHScrollMax, m_TitleTip, max, min, CCellID::row, SetScrollPos32(), and TRUE.
void CGridCtrl::OnKeyDown | ( | UINT | nChar, | |
UINT | nRepCnt, | |||
UINT | nFlags | |||
) | [protected] |
Definition at line 860 of file GridCtrl.cpp.
References BOOL(), CCellID::col, EnsureVisible(), FALSE, GetColumnCount(), GetColumnWidth(), GetRowCount(), GetRowHeight(), GetTopleftNonFixedCell(), GVN_BEGINLABELEDIT, GVN_ENDLABELEDIT, IsCellEditable(), IsCellVisible(), IsCTRLpressed, IsSHIFTpressed, IsValid(), m_bListMode, m_idCurrentCell, m_MouseMode, m_nFixedCols, m_nFixedRows, m_nHScrollMax, m_PrevSelectedCellMap, m_SelectionStartCell, MOUSE_NOTHING, MOUSE_SELECT_CELLS, MOUSE_SELECT_ROW, OnEditCell(), OnEditCopy(), OnEditCut(), OnEditPaste(), OnEditSelectAll(), CComboEdit::OnKeyDown(), OnSelecting(), RedrawCell(), CCellID::row, SendMessageToParent(), SetFocusCell(), SetItemText(), SetModified(), SetScrollPos32(), and TRUE.
Referenced by OnEndInPlaceEdit(), CInPlaceList::OnKeyDown(), and CComboEdit::OnKeyDown().
void CGridCtrl::OnLButtonDblClk | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 5329 of file GridCtrl.cpp.
References AutoSizeColumn(), AutoSizeRow(), BOOL(), CCellID::col, FALSE, GetAutoSizeStyle(), GetCell(), GetCellFromPt(), GetCellOrigin(), GetColumnWidth(), GetFixedColumnCount(), GetPointClicked(), GetRowHeight(), IsValid(), m_bListMode, m_LeftClickDownCell, m_MouseMode, m_nFixedCols, m_nFixedRows, m_nResizeCaptureRange, MOUSE_NOTHING, MOUSE_OVER_COL_DIVIDE, MOUSE_OVER_ROW_DIVIDE, MouseOverColumnResizeArea(), MouseOverRowResizeArea(), CGridCellBase::OnDblClick(), OnEditCell(), CCellID::row, SendMessageToParent(), and TRUE.
void CGridCtrl::OnLButtonDown | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 5430 of file GridCtrl.cpp.
References BOOL(), CCellID::col, EndEditing(), FALSE, GetCell(), GetCellFromPt(), GetCellOrigin(), GetColumnCount(), GetColumnWidth(), GetFixedColumnCount(), GetFixedRowCount(), GetListMode(), GetPointClicked(), GetRowCount(), GetRowHeight(), CTitleTip::Hide(), IsCellEditable(), IsCellSelected(), IsValid(), m_bAllowColumnResize, m_bAllowDragAndDrop, m_bAllowRowResize, m_bHiddenColUnhide, m_bHiddenRowUnhide, m_bListMode, m_bMouseButtonDown, m_idCurrentCell, m_LastMousePoint, m_LeftClickDownCell, m_LeftClickDownPoint, m_MouseMode, m_nFixedCols, m_nFixedRows, m_nResizeCaptureRange, m_nTimerID, m_nTimerInterval, m_PrevSelectedCellMap, m_SelectedCellMap, m_SelectionStartCell, m_TitleTip, max, MOUSE_NOTHING, MOUSE_OVER_COL_DIVIDE, MOUSE_OVER_ROW_DIVIDE, MOUSE_PREPARE_DRAG, MOUSE_PREPARE_EDIT, MOUSE_SELECT_CELLS, MOUSE_SELECT_ROW, MOUSE_SIZING_COL, MOUSE_SIZING_ROW, MouseOverColumnResizeArea(), MouseOverRowResizeArea(), CGridCellBase::OnClickDown(), OnFixedColumnClick(), OnFixedRowClick(), OnSelecting(), CCellID::row, SelectCells(), SelectRows(), SetFocusCell(), and TRUE.
void CGridCtrl::OnLButtonUp | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 5705 of file GridCtrl.cpp.
References CCellID::col, FALSE, GetCell(), GetCellOrigin(), GetPointClicked(), IsValid(), m_bAllowColHide, m_bAllowRowHide, m_bMouseButtonDown, m_idCurrentCell, m_LastMousePoint, m_LeftClickDownCell, m_LeftClickDownPoint, m_MouseMode, m_nTimerID, max, MOUSE_NOTHING, MOUSE_PREPARE_DRAG, MOUSE_PREPARE_EDIT, MOUSE_SIZING_COL, MOUSE_SIZING_ROW, CGridCellBase::OnClick(), OnEditCell(), ResetScrollBars(), ResetSelectedRange(), CCellID::row, SendMessageToParent(), SetColumnWidth(), and SetRowHeight().
void CGridCtrl::OnMouseMove | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 5144 of file GridCtrl.cpp.
References CCellID::col, GetCell(), GetCellFromPt(), GetCellRect(), GetFocusCell(), CGridCellBase::GetFont(), CGridCellBase::GetTipText(), CGridCellBase::GetTipTextRect(), GetTitleTipBackClr(), GetTitleTipTextClr(), GetVirtualMode(), CGridCellBase::IsEditing(), IsValid(), m_bAllowColumnResize, m_bAllowRowResize, m_bMouseButtonDown, m_bTitleTips, m_LastMousePoint, m_LeftClickDownCell, m_MouseMode, m_nFixedCols, m_nFixedRows, m_TitleTip, MOUSE_DRAGGING, MOUSE_NOTHING, MOUSE_OVER_COL_DIVIDE, MOUSE_OVER_ROW_DIVIDE, MOUSE_PREPARE_DRAG, MOUSE_PREPARE_EDIT, MOUSE_SELECT_ALL, MOUSE_SELECT_CELLS, MOUSE_SELECT_COL, MOUSE_SELECT_ROW, MOUSE_SIZING_COL, MOUSE_SIZING_ROW, MouseOverColumnResizeArea(), MouseOverRowResizeArea(), OnBeginDrag(), CGridCellBase::OnMouseOver(), OnSelecting(), CCellID::row, SetFocusCell(), and CTitleTip::Show().
void CGridCtrl::OnPaint | ( | ) | [protected] |
Definition at line 572 of file GridCtrl.cpp.
void CGridCtrl::OnPrint | ( | CDC * | pDC, | |
CPrintInfo * | pInfo | |||
) | [virtual] |
Definition at line 6058 of file GridCtrl.cpp.
References BOOL(), FALSE, GetCell(), GetColumnCount(), GetColumnWidth(), GetFixedColumnCount(), GetFixedRowCount(), GetFixedRowHeight(), GetRowCount(), GetRowHeight(), GVL_BOTH, GVL_HORZ, GVL_VERT, m_CharSize, m_LogicalPageSize, m_nCurrPrintRow, m_nFooterHeight, m_nGap, m_nGridLines, m_nHeaderHeight, m_nLeftMargin, m_nPageHeight, m_nPageMultiplier, m_nPageWidth, m_nPrintColumn, m_nRightMargin, m_PaperSize, m_PrinterFont, CGridCellBase::PrintCell(), PrintColumnHeadings(), PrintFooter(), PrintHeader(), PrintRowButtons(), and TRUE.
Referenced by Print().
void CGridCtrl::OnRButtonUp | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 5827 of file GridCtrl.cpp.
References CCellID::col, EndEditing(), GetCell(), GetCellFromPt(), GetPointClicked(), IsValid(), m_idCurrentCell, m_nFixedCols, m_nFixedRows, max, CGridCellBase::OnRClick(), CCellID::row, SendMessageToParent(), and SetFocusCell().
void CGridCtrl::OnSelecting | ( | const CCellID & | currentCell | ) | [protected] |
Definition at line 2094 of file GridCtrl.cpp.
References FALSE, m_bEnableSelection, m_MouseMode, MOUSE_SELECT_ALL, MOUSE_SELECT_CELLS, MOUSE_SELECT_COL, MOUSE_SELECT_ROW, SelectAllCells(), SelectCells(), SelectColumns(), and SelectRows().
Referenced by OnFixedColumnClick(), OnFixedRowClick(), OnKeyDown(), OnLButtonDown(), OnMouseMove(), and OnTimer().
BOOL CGridCtrl::OnSetCursor | ( | CWnd * | pWnd, | |
UINT | nHitTest, | |||
UINT | message | |||
) | [protected] |
Definition at line 3106 of file GridCtrl.cpp.
References CCellID::col, GetCell(), GetCellFromPt(), GetVirtualMode(), IsValid(), m_MouseMode, MOUSE_DRAGGING, MOUSE_OVER_COL_DIVIDE, MOUSE_OVER_ROW_DIVIDE, CGridCellBase::OnSetCursor(), CCellID::row, and TRUE.
LRESULT CGridCtrl::OnSetFont | ( | WPARAM | hFont, | |
LPARAM | lParam | |||
) | [protected] |
Definition at line 3078 of file GridCtrl.cpp.
References m_cellDefault, m_cellFixedColDef, m_cellFixedRowColDef, m_cellFixedRowDef, Refresh(), and CGridDefaultCell::SetFont().
void CGridCtrl::OnSize | ( | UINT | nType, | |
int | cx, | |||
int | cy | |||
) | [protected] |
Definition at line 652 of file GridCtrl.cpp.
References BOOL(), EndEditing(), FALSE, ResetScrollBars(), and TRUE.
void CGridCtrl::OnSysColorChange | ( | ) | [protected] |
Definition at line 685 of file GridCtrl.cpp.
References FALSE, GetDefaultCell(), GetGridBkColor(), m_cr3DFace, m_crShadow, m_crWindowColour, m_crWindowText, CGridCellBase::SetBackClr(), SetGridBkColor(), CGridCellBase::SetTextClr(), and TRUE.
void CGridCtrl::OnSysKeyDown | ( | UINT | nChar, | |
UINT | nRepCnt, | |||
UINT | nFlags | |||
) | [protected] |
void CGridCtrl::OnTimer | ( | UINT | nIDEvent | ) | [protected] |
Definition at line 781 of file GridCtrl.cpp.
References ASSERT, GetCellFromPt(), GetFixedColumnWidth(), GetFixedRowHeight(), m_MouseMode, MOUSE_NOTHING, and OnSelecting().
void CGridCtrl::OnUpdateEditCopy | ( | CCmdUI * | pCmdUI | ) | [protected] |
Definition at line 2514 of file GridCtrl.cpp.
References CCellRange::Count(), GetSelectedCellRange(), and IsValid().
void CGridCtrl::OnUpdateEditCut | ( | CCmdUI * | pCmdUI | ) | [protected] |
Definition at line 2520 of file GridCtrl.cpp.
References CCellRange::Count(), GetSelectedCellRange(), IsEditable(), and IsValid().
void CGridCtrl::OnUpdateEditPaste | ( | CCmdUI * | pCmdUI | ) | [protected] |
Definition at line 2526 of file GridCtrl.cpp.
References BOOL(), GetFocusCell(), IsCellEditable(), and IsValid().
void CGridCtrl::OnUpdateEditSelectAll | ( | CCmdUI * | pCmdUI | ) | [protected] |
void CGridCtrl::OnVScroll | ( | UINT | nSBCode, | |
UINT | nPos, | |||
CScrollBar * | pScrollBar | |||
) | [protected] |
Definition at line 1375 of file GridCtrl.cpp.
References EndEditing(), GetFixedRowCount(), GetFixedRowHeight(), GetRowCount(), GetRowHeight(), GetScrollPos32(), GetTopleftNonFixedCell(), CTitleTip::Hide(), m_idTopLeftCell, m_nVScrollMax, m_TitleTip, max, min, CCellID::row, SetScrollPos32(), and TRUE.
BOOL CGridCtrl::PasteTextToGrid | ( | CCellID | cell, | |
COleDataObject * | pDataObject | |||
) | [virtual] |
Definition at line 2223 of file GridCtrl.cpp.
References CCellID::col, FALSE, GetColumnCount(), GetColumnWidth(), GetItemState(), GetRowCount(), GetRowHeight(), GVIS_SELECTED, GVN_BEGINLABELEDIT, GVN_ENDLABELEDIT, IsCellEditable(), IsValid(), Refresh(), CCellID::row, SendMessageToParent(), SetItemState(), SetItemText(), SetModified(), and TRUE.
Referenced by OnDrop(), and OnEditPaste().
void CGridCtrl::PreSubclassWindow | ( | ) | [protected, virtual] |
void CGridCtrl::Print | ( | ) |
Definition at line 5894 of file GridCtrl.cpp.
References BOOL(), FALSE, OnBeginPrinting(), OnEndPrinting(), OnPrint(), and TRUE.
void CGridCtrl::PrintColumnHeadings | ( | CDC * | pDC, | |
CPrintInfo * | pInfo | |||
) | [protected, virtual] |
Definition at line 6249 of file GridCtrl.cpp.
References BOOL(), FALSE, GetCell(), GetColumnCount(), GetColumnWidth(), GetFixedRowCount(), GetRowHeight(), GVL_BOTH, GVL_HORZ, GVL_VERT, m_nGridLines, m_nPageWidth, m_nPrintColumn, m_PrinterFont, CGridCellBase::PrintCell(), and TRUE.
Referenced by OnPrint().
void CGridCtrl::PrintFooter | ( | CDC * | pDC, | |
CPrintInfo * | pInfo | |||
) | [protected, virtual] |
void CGridCtrl::PrintHeader | ( | CDC * | pDC, | |
CPrintInfo * | pInfo | |||
) | [protected, virtual] |
Definition at line 6366 of file GridCtrl.cpp.
References m_PrinterFont, and VERIFY.
Referenced by OnPrint().
void CGridCtrl::PrintRowButtons | ( | CDC * | pDC, | |
CPrintInfo * | ||||
) | [protected, virtual] |
Definition at line 6311 of file GridCtrl.cpp.
References BOOL(), FALSE, GetCell(), GetColumnWidth(), GetFixedColumnCount(), GetRowCount(), GetRowHeight(), GVL_BOTH, GVL_HORZ, GVL_VERT, m_nCurrPrintRow, m_nGridLines, m_nPageHeight, m_PrinterFont, CGridCellBase::PrintCell(), and TRUE.
Referenced by OnPrint().
BOOL CGridCtrl::RedrawCell | ( | const CCellID & | cell, | |
CDC * | pDC = NULL | |||
) |
Definition at line 1714 of file GridCtrl.cpp.
References CCellID::col, RedrawCell(), and CCellID::row.
BOOL CGridCtrl::RedrawCell | ( | int | nRow, | |
int | nCol, | |||
CDC * | pDC = NULL | |||
) |
Definition at line 1719 of file GridCtrl.cpp.
References BOOL(), CGridCellBase::Draw(), FALSE, GetCell(), GetCellRect(), GVL_BOTH, GVL_HORZ, GVL_VERT, IsCellVisible(), m_bAllowDraw, m_crGridLineColour, m_nFixedCols, m_nFixedRows, m_nGridLines, and TRUE.
Referenced by OnDragEnter(), OnDragLeave(), OnDragOver(), OnKeyDown(), RedrawCell(), RedrawColumn(), RedrawRow(), SetFocusCell(), and SetSelectedRange().
BOOL CGridCtrl::RedrawColumn | ( | int | col | ) |
Definition at line 1795 of file GridCtrl.cpp.
References BOOL(), GetRowCount(), RedrawCell(), and TRUE.
BOOL CGridCtrl::RedrawRow | ( | int | row | ) |
Definition at line 1781 of file GridCtrl.cpp.
References BOOL(), GetColumnCount(), RedrawCell(), and TRUE.
void CGridCtrl::Refresh | ( | ) |
Definition at line 4879 of file GridCtrl.cpp.
References m_bAllowDraw.
Referenced by AutoSize(), CutSelectedText(), ExpandColumnsToFit(), ExpandLastColumn(), ExpandRowsToFit(), ExpandToFit(), OnSetFont(), PasteTextToGrid(), SetColumnCount(), SetFixedColumnCount(), SetFixedRowCount(), SetGridLines(), SetListMode(), SetRedraw(), and SetRowCount().
BOOL CGridCtrl::RegisterWindowClass | ( | ) | [protected] |
Definition at line 335 of file GridCtrl.cpp.
References FALSE, GRIDCTRL_CLASSNAME, and TRUE.
Referenced by CGridCtrl().
void CGridCtrl::ResetScrollBars | ( | ) | [protected] |
Definition at line 2869 of file GridCtrl.cpp.
References ASSERT, EnableScrollBars(), FALSE, GetFixedColumnWidth(), GetFixedRowHeight(), GetVirtualHeight(), GetVirtualWidth(), IsVisibleHScroll(), IsVisibleVScroll(), m_bAllowDraw, m_idTopLeftCell, m_nHScrollMax, m_nVScrollMax, CCellID::row, and TRUE.
Referenced by AutoSize(), AutoSizeColumn(), AutoSizeColumns(), AutoSizeRow(), AutoSizeRows(), Create(), DeleteAllItems(), DeleteColumn(), DeleteRow(), ExpandColumnsToFit(), ExpandLastColumn(), ExpandRowsToFit(), InsertColumn(), InsertRow(), OnLButtonUp(), OnSize(), SetColumnCount(), SetColumnWidth(), SetRedraw(), SetRowCount(), and SetRowHeight().
void CGridCtrl::ResetSelectedRange | ( | ) | [protected] |
Definition at line 2798 of file GridCtrl.cpp.
References m_PrevSelectedCellMap, SetFocusCell(), and SetSelectedRange().
Referenced by DeleteAllItems(), DeleteColumn(), DeleteNonFixedRows(), DeleteRow(), EnableSelection(), InsertColumn(), InsertRow(), OnLButtonUp(), SetFixedColumnCount(), SetFixedRowCount(), SetListMode(), SortItems(), and SortTextItems().
BOOL CGridCtrl::Save | ( | LPCTSTR | filename | ) |
Definition at line 6466 of file GridCtrl.cpp.
References e, FALSE, GetColumnCount(), GetItemText(), GetRowCount(), and TRUE.
void CGridCtrl::SelectAllCells | ( | ) | [protected] |
Definition at line 2010 of file GridCtrl.cpp.
References GetColumnCount(), GetRowCount(), m_bEnableSelection, m_nFixedCols, m_nFixedRows, and SetSelectedRange().
Referenced by OnEditSelectAll(), and OnSelecting().
void CGridCtrl::SelectCells | ( | CCellID | currentCell, | |
BOOL | bForceRedraw = FALSE , |
|||
BOOL | bSelectCells = TRUE | |||
) | [protected] |
Definition at line 2069 of file GridCtrl.cpp.
References CCellID::col, IsValid(), m_bEnableSelection, m_nFixedCols, m_nFixedRows, m_SelectionStartCell, max, min, CCellID::row, and SetSelectedRange().
Referenced by OnLButtonDown(), and OnSelecting().
void CGridCtrl::SelectColumns | ( | CCellID | currentCell, | |
BOOL | bForceRedraw = FALSE , |
|||
BOOL | bSelectCells = TRUE | |||
) | [protected] |
Definition at line 2019 of file GridCtrl.cpp.
References CCellID::col, GetFixedRowCount(), GetRowCount(), GetSingleColSelection(), IsValid(), m_bEnableSelection, m_nFixedCols, m_SelectionStartCell, max, min, and SetSelectedRange().
Referenced by OnSelecting().
void CGridCtrl::SelectRows | ( | CCellID | currentCell, | |
BOOL | bForceRedraw = FALSE , |
|||
BOOL | bSelectCells = TRUE | |||
) | [protected] |
Definition at line 2044 of file GridCtrl.cpp.
References GetColumnCount(), GetFixedColumnCount(), GetSingleRowSelection(), IsValid(), m_bEnableSelection, m_nFixedRows, m_SelectionStartCell, max, min, CCellID::row, and SetSelectedRange().
Referenced by OnLButtonDown(), and OnSelecting().
LRESULT CGridCtrl::SendCacheHintToParent | ( | CCellRange & | range | ) | const [protected] |
Definition at line 499 of file GridCtrl.cpp.
References GVN_ODCACHEHINT, tagGV_CACHEHINT::hdr, and tagGV_CACHEHINT::range.
Referenced by OnDraw().
LRESULT CGridCtrl::SendDisplayRequestToParent | ( | GV_DISPINFO * | pDisplayInfo | ) | const [protected] |
Definition at line 480 of file GridCtrl.cpp.
References GVN_GETDISPINFO, and tagGV_DISPINFO::hdr.
Referenced by GetCell().
LRESULT CGridCtrl::SendMessageToParent | ( | int | nRow, | |
int | nCol, | |||
int | nMessage | |||
) | const [protected] |
Definition at line 460 of file GridCtrl.cpp.
References tagNM_GRIDVIEW::hdr, tagNM_GRIDVIEW::iColumn, and tagNM_GRIDVIEW::iRow.
Referenced by CutSelectedText(), OnBeginDrag(), OnEditCell(), OnEndInPlaceEdit(), OnKeyDown(), OnLButtonDblClk(), OnLButtonUp(), OnRButtonUp(), PasteTextToGrid(), CGridCellBase::SendMessageToParent(), and SetFocusCell().
void CGridCtrl::SetAutoSizeStyle | ( | int | nStyle = GVS_BOTH |
) | [inline] |
Definition at line 332 of file GridCtrl.h.
References m_nAutoSizeColumnStyle.
Referenced by SetVirtualMode().
void CGridCtrl::SetBkColor | ( | COLORREF | clr | ) | [inline] |
void CGridCtrl::SetCallbackFunc | ( | GRIDCALLBACK | pCallback, | |
LPARAM | lParam | |||
) | [inline] |
BOOL CGridCtrl::SetCell | ( | int | nRow, | |
int | nCol, | |||
CGridCellBase * | pCell | |||
) | [inline, protected] |
Definition at line 811 of file GridCtrl.h.
References FALSE, GetVirtualMode(), m_nCols, m_nRows, m_RowData, CGridCellBase::SetCoords(), and TRUE.
Referenced by SetCellType(), SortItems(), and SortTextItems().
BOOL CGridCtrl::SetCellType | ( | int | nRow, | |
int | nCol, | |||
CRuntimeClass * | pRuntimeClass | |||
) |
Definition at line 3610 of file GridCtrl.cpp.
References ASSERT, FALSE, GetCell(), GetVirtualMode(), IsValid(), SetCell(), and TRUE.
Referenced by CSettingsDlgBar::initGrid().
BOOL CGridCtrl::SetColumnCount | ( | int | nCols = 10 |
) |
Definition at line 3353 of file GridCtrl.cpp.
References ASSERT, BOOL(), CCellID::col, CreateCell(), DestroyCell(), e, FALSE, GetColumnCount(), GetVirtualMode(), CGridDefaultCell::GetWidth(), m_arColWidths, m_cellFixedColDef, m_idCurrentCell, m_idTopLeftCell, m_nCols, m_nFixedCols, m_nRows, m_RowData, Refresh(), ResetScrollBars(), SetFocusCell(), SetModified(), and TRUE.
Referenced by AutoFill(), CGridCtrl(), CSettingsDlgBar::initGrid(), InsertRow(), and SetFixedColumnCount().
void CGridCtrl::SetColumnResize | ( | BOOL | bResize = TRUE |
) | [inline] |
BOOL CGridCtrl::SetColumnWidth | ( | int | col, | |
int | width | |||
) |
Definition at line 4503 of file GridCtrl.cpp.
References ASSERT, FALSE, m_arColWidths, m_nCols, ResetScrollBars(), and TRUE.
Referenced by OnLButtonUp(), and CSettingsDlgBar::OnSize().
BOOL CGridCtrl::SetDefaultCellType | ( | CRuntimeClass * | pRuntimeClass | ) |
void CGridCtrl::SetDefCellHeight | ( | int | nHeight | ) | [inline] |
Definition at line 265 of file GridCtrl.h.
References m_cellDefault, m_cellFixedColDef, m_cellFixedRowColDef, m_cellFixedRowDef, and CGridDefaultCell::SetHeight().
void CGridCtrl::SetDefCellMargin | ( | int | nMargin | ) | [inline] |
Definition at line 258 of file GridCtrl.h.
References m_cellDefault, m_cellFixedColDef, m_cellFixedRowColDef, m_cellFixedRowDef, and CGridCell::SetMargin().
void CGridCtrl::SetDefCellWidth | ( | int | nWidth | ) | [inline] |
Definition at line 270 of file GridCtrl.h.
References m_cellDefault, m_cellFixedColDef, m_cellFixedRowColDef, m_cellFixedRowDef, and CGridDefaultCell::SetWidth().
void CGridCtrl::SetDoubleBuffering | ( | BOOL | bBuffer = TRUE |
) | [inline] |
void CGridCtrl::SetEditable | ( | BOOL | bEditable = TRUE |
) | [inline] |
void CGridCtrl::SetFixedBkColor | ( | COLORREF | clr | ) | [inline] |
Definition at line 249 of file GridCtrl.h.
References m_cellFixedColDef, m_cellFixedRowColDef, m_cellFixedRowDef, and CGridCell::SetBackClr().
BOOL CGridCtrl::SetFixedColumnCount | ( | int | nFixedCols = 1 |
) |
Definition at line 3203 of file GridCtrl.cpp.
References ASSERT, CCellID::col, FALSE, GetColumnCount(), GetFixedRowCount(), GetItemState(), GetRowCount(), GetVirtualMode(), GVIS_FIXED, GVIS_FIXEDCOL, m_idCurrentCell, m_idTopLeftCell, m_nFixedCols, Refresh(), ResetSelectedRange(), SetColumnCount(), SetFocusCell(), SetItemBkColour(), SetItemFgColour(), SetItemState(), and TRUE.
Referenced by AutoFill(), CGridCtrl(), and CSettingsDlgBar::initGrid().
void CGridCtrl::SetFixedColumnSelection | ( | BOOL | bSelect | ) | [inline] |
Definition at line 306 of file GridCtrl.h.
References m_bFixedColumnSelection.
Referenced by SetVirtualMode().
BOOL CGridCtrl::SetFixedRowCount | ( | int | nFixedRows = 1 |
) |
Definition at line 3148 of file GridCtrl.cpp.
References ASSERT, CCellID::col, FALSE, GetColumnCount(), GetFixedColumnCount(), GetItemState(), GetRowCount(), GetVirtualMode(), GVIS_FIXED, GVIS_FIXEDROW, m_idCurrentCell, m_idTopLeftCell, m_nFixedRows, Refresh(), ResetSelectedRange(), CCellID::row, SetFocusCell(), SetItemBkColour(), SetItemFgColour(), SetItemState(), SetRowCount(), and TRUE.
Referenced by AutoFill(), CGridCtrl(), and CSettingsDlgBar::initGrid().
void CGridCtrl::SetFixedRowSelection | ( | BOOL | bSelect | ) | [inline] |
Definition at line 308 of file GridCtrl.h.
References m_bFixedRowSelection.
Referenced by SetListMode(), and SetVirtualMode().
void CGridCtrl::SetFixedTextColor | ( | COLORREF | clr | ) | [inline] |
Definition at line 245 of file GridCtrl.h.
References m_cellFixedColDef, m_cellFixedRowColDef, m_cellFixedRowDef, and CGridCell::SetTextClr().
CCellID CGridCtrl::SetFocusCell | ( | int | nRow, | |
int | nCol | |||
) |
Definition at line 1815 of file GridCtrl.cpp.
References CCellID::col, GetFixedColumnCount(), GetFixedRowCount(), GetItemState(), GetTrackFocusCell(), GVIS_FOCUSED, GVN_SELCHANGED, GVN_SELCHANGING, IsValid(), m_idCurrentCell, m_nFixedCols, m_nFixedRows, RedrawCell(), CCellID::row, SendMessageToParent(), and SetItemState().
Referenced by OnKeyDown(), OnLButtonDown(), OnMouseMove(), OnRButtonUp(), ResetSelectedRange(), SetColumnCount(), SetFixedColumnCount(), SetFixedRowCount(), SetFocusCell(), SetRowCount(), SortItems(), and SortTextItems().
void CGridCtrl::SetFrameFocusCell | ( | BOOL | bFrame | ) | [inline] |
void CGridCtrl::SetGridBkColor | ( | COLORREF | clr | ) | [inline] |
Definition at line 229 of file GridCtrl.h.
References m_crGridBkColour.
Referenced by CGridCtrl(), OnSysColorChange(), and SetBkColor().
void CGridCtrl::SetGridColor | ( | COLORREF | clr | ) | [inline] |
void CGridCtrl::SetGridLineColor | ( | COLORREF | clr | ) | [inline] |
Definition at line 231 of file GridCtrl.h.
References m_crGridLineColour.
Referenced by SetGridColor().
void CGridCtrl::SetGridLines | ( | int | nWhichLines = GVL_BOTH |
) |
void CGridCtrl::SetHandleTabKey | ( | BOOL | bHandleTab = TRUE |
) | [inline] |
void CGridCtrl::SetHeaderSort | ( | BOOL | bSortOnClick = TRUE |
) | [inline] |
Definition at line 316 of file GridCtrl.h.
References m_bSortOnClick.
Referenced by SetVirtualMode().
void CGridCtrl::SetImageList | ( | CImageList * | pList | ) | [inline] |
BOOL CGridCtrl::SetItem | ( | const GV_ITEM * | pItem | ) |
Definition at line 4120 of file GridCtrl.cpp.
References _GV_ITEM::col, _GV_ITEM::crBkClr, _GV_ITEM::crFgClr, FALSE, GetCell(), GetVirtualMode(), GVIF_BKCLR, GVIF_FGCLR, GVIF_FONT, GVIF_FORMAT, GVIF_IMAGE, GVIF_MARGIN, GVIF_PARAM, GVIF_STATE, GVIF_TEXT, _GV_ITEM::iImage, _GV_ITEM::lfFont, _GV_ITEM::lParam, _GV_ITEM::mask, _GV_ITEM::nFormat, _GV_ITEM::nMargin, _GV_ITEM::nState, _GV_ITEM::row, CGridCellBase::SetBackClr(), CGridCellBase::SetData(), CGridCellBase::SetFont(), CGridCellBase::SetFormat(), CGridCellBase::SetImage(), CGridCellBase::SetMargin(), SetModified(), CGridCellBase::SetState(), CGridCellBase::SetText(), CGridCellBase::SetTextClr(), _GV_ITEM::strText, and TRUE.
Referenced by CSettingsDlgBar::initGrid().
BOOL CGridCtrl::SetItemBkColour | ( | int | nRow, | |
int | nCol, | |||
COLORREF | cr = CLR_DEFAULT | |||
) |
Definition at line 4367 of file GridCtrl.cpp.
References ASSERT, FALSE, GetCell(), GetVirtualMode(), CGridCellBase::SetBackClr(), and TRUE.
Referenced by SetFixedColumnCount(), and SetFixedRowCount().
BOOL CGridCtrl::SetItemData | ( | int | nRow, | |
int | nCol, | |||
LPARAM | lParam | |||
) |
Definition at line 4251 of file GridCtrl.cpp.
References FALSE, GetCell(), GetVirtualMode(), CGridCellBase::SetData(), SetModified(), and TRUE.
BOOL CGridCtrl::SetItemFgColour | ( | int | nRow, | |
int | nCol, | |||
COLORREF | cr = CLR_DEFAULT | |||
) |
Definition at line 4391 of file GridCtrl.cpp.
References ASSERT, FALSE, GetCell(), GetVirtualMode(), CGridCellBase::SetTextClr(), and TRUE.
Referenced by SetFixedColumnCount(), and SetFixedRowCount().
BOOL CGridCtrl::SetItemFont | ( | int | nRow, | |
int | nCol, | |||
const LOGFONT * | lf | |||
) |
Definition at line 4415 of file GridCtrl.cpp.
References ASSERT, FALSE, GetCell(), GetVirtualMode(), CGridCellBase::SetFont(), and TRUE.
BOOL CGridCtrl::SetItemFormat | ( | int | nRow, | |
int | nCol, | |||
UINT | nFormat | |||
) |
Definition at line 4343 of file GridCtrl.cpp.
References ASSERT, FALSE, GetCell(), GetVirtualMode(), CGridCellBase::SetFormat(), and TRUE.
Referenced by InsertColumn().
BOOL CGridCtrl::SetItemImage | ( | int | nRow, | |
int | nCol, | |||
int | iImage | |||
) |
Definition at line 4274 of file GridCtrl.cpp.
References FALSE, GetCell(), GetVirtualMode(), CGridCellBase::SetImage(), SetModified(), and TRUE.
BOOL CGridCtrl::SetItemState | ( | int | nRow, | |
int | nCol, | |||
UINT | state | |||
) |
Definition at line 4298 of file GridCtrl.cpp.
References ASSERT, BOOL(), FALSE, GetCell(), GetVirtualMode(), GVIS_SELECTED, IsCellSelected(), m_SelectedCellMap, CGridCellBase::SetState(), and TRUE.
Referenced by DestroyCell(), OnDragEnter(), OnDragLeave(), OnDragOver(), PasteTextToGrid(), SetFixedColumnCount(), SetFixedRowCount(), SetFocusCell(), SetModified(), and SetSelectedRange().
BOOL CGridCtrl::SetItemText | ( | int | nRow, | |
int | nCol, | |||
LPCTSTR | str | |||
) |
Definition at line 4183 of file GridCtrl.cpp.
References FALSE, GetCell(), GetVirtualMode(), SetModified(), CGridCellBase::SetText(), and TRUE.
Referenced by InsertColumn(), InsertRow(), Load(), OnEndEditCell(), OnKeyDown(), and PasteTextToGrid().
void CGridCtrl::SetListMode | ( | BOOL | bEnableListMode = TRUE |
) |
Definition at line 4818 of file GridCtrl.cpp.
References FALSE, m_bListMode, Refresh(), ResetSelectedRange(), SetFixedRowSelection(), and SetSortColumn().
void CGridCtrl::SetModified | ( | BOOL | bModified = TRUE , |
|
int | nRow = -1 , |
|||
int | nCol = -1 | |||
) |
Definition at line 4841 of file GridCtrl.cpp.
References GetColumnCount(), GetItemState(), GetRowCount(), GetSortColumn(), GVIS_MODIFIED, m_bModified, SetItemState(), SetSortColumn(), and TRUE.
Referenced by CutSelectedText(), DeleteAllItems(), DeleteColumn(), DeleteRow(), InsertColumn(), InsertRow(), OnEndEditCell(), OnKeyDown(), PasteTextToGrid(), SetColumnCount(), SetItem(), SetItemData(), SetItemImage(), SetItemText(), and SetRowCount().
int CGridCtrl::SetMouseMode | ( | int | nMode | ) | [inline, protected] |
void CGridCtrl::SetPrintMarginInfo | ( | int | nHeaderHeight, | |
int | nFooterHeight, | |||
int | nLeftMargin, | |||
int | nRightMargin, | |||
int | nTopMargin, | |||
int | nBottomMargin, | |||
int | nGap | |||
) |
Definition at line 5860 of file GridCtrl.cpp.
References m_nBottomMargin, m_nFooterHeight, m_nGap, m_nHeaderHeight, m_nLeftMargin, m_nRightMargin, and m_nTopMargin.
Referenced by CGridCtrl().
void CGridCtrl::SetRedraw | ( | BOOL | bAllowDraw, | |
BOOL | bResetScrollBars = FALSE | |||
) |
Definition at line 1697 of file GridCtrl.cpp.
References m_bAllowDraw, Refresh(), ResetScrollBars(), and TRUE.
BOOL CGridCtrl::SetRowCount | ( | int | nRows = 10 |
) |
Definition at line 3257 of file GridCtrl.cpp.
References ASSERT, BOOL(), CCellID::col, CreateCell(), DestroyCell(), e, FALSE, CGridDefaultCell::GetHeight(), GetRowCount(), GetVirtualMode(), m_arRowHeights, m_cellDefault, m_idCurrentCell, m_idTopLeftCell, m_nCols, m_nFixedRows, m_nRows, m_RowData, Refresh(), ResetScrollBars(), CCellID::row, SetFocusCell(), SetModified(), and TRUE.
Referenced by AutoFill(), CGridCtrl(), CSettingsDlgBar::initGrid(), InsertColumn(), and SetFixedRowCount().
BOOL CGridCtrl::SetRowHeight | ( | int | row, | |
int | height | |||
) |
Definition at line 4491 of file GridCtrl.cpp.
References ASSERT, FALSE, m_arRowHeights, m_nRows, ResetScrollBars(), and TRUE.
Referenced by OnLButtonUp(), and CSettingsDlgBar::OnSize().
void CGridCtrl::SetRowResize | ( | BOOL | bResize = TRUE |
) | [inline] |
BOOL CGridCtrl::SetScrollPos32 | ( | int | nBar, | |
int | nPos, | |||
BOOL | bRedraw = TRUE | |||
) | [protected] |
Definition at line 2825 of file GridCtrl.cpp.
References m_idTopLeftCell, and CCellID::row.
Referenced by OnHScroll(), OnKeyDown(), and OnVScroll().
void CGridCtrl::SetSelectedRange | ( | int | nMinRow, | |
int | nMinCol, | |||
int | nMaxRow, | |||
int | nMaxCol, | |||
BOOL | bForceRepaint = FALSE , |
|||
BOOL | bSelectCells = TRUE | |||
) |
Definition at line 1889 of file GridCtrl.cpp.
References CCellID::col, GetFixedColumnCount(), GetFixedRowCount(), GetItemState(), GetSingleRowSelection(), GVIS_SELECTED, InvalidateCellRect(), IsValid(), m_bEnableSelection, m_nCols, m_nRows, m_PrevSelectedCellMap, m_SelectedCellMap, RedrawCell(), CCellID::row, and SetItemState().
void CGridCtrl::SetSelectedRange | ( | const CCellRange & | Range, | |
BOOL | bForceRepaint = FALSE , |
|||
BOOL | bSelectCells = TRUE | |||
) |
Definition at line 1881 of file GridCtrl.cpp.
References CCellRange::GetMaxCol(), CCellRange::GetMaxRow(), CCellRange::GetMinCol(), and CCellRange::GetMinRow().
Referenced by ResetSelectedRange(), SelectAllCells(), SelectCells(), SelectColumns(), and SelectRows().
void CGridCtrl::SetShadedPrintOut | ( | BOOL | bEnable = TRUE |
) | [inline] |
void CGridCtrl::SetSingleColSelection | ( | BOOL | bSing = TRUE |
) | [inline] |
void CGridCtrl::SetSingleRowSelection | ( | BOOL | bSing = TRUE |
) | [inline] |
void CGridCtrl::SetSortAscending | ( | BOOL | bAscending | ) | [inline] |
Definition at line 326 of file GridCtrl.h.
References m_bAscending.
Referenced by SortItems(), and SortTextItems().
void CGridCtrl::SetSortColumn | ( | int | nCol | ) |
Definition at line 4827 of file GridCtrl.cpp.
References InvalidateCellRect(), and m_nSortColumn.
Referenced by SetListMode(), SetModified(), SortItems(), and SortTextItems().
void CGridCtrl::SetTextBkColor | ( | COLORREF | clr | ) | [inline] |
void CGridCtrl::SetTextColor | ( | COLORREF | clr | ) | [inline] |
void CGridCtrl::SetTitleTipBackClr | ( | COLORREF | clr = CLR_DEFAULT |
) | [inline] |
void CGridCtrl::SetTitleTipTextClr | ( | COLORREF | clr = CLR_DEFAULT |
) | [inline] |
void CGridCtrl::SetTrackFocusCell | ( | BOOL | bTrack | ) | [inline] |
void CGridCtrl::SetupDefaultCells | ( | ) | [protected] |
Definition at line 428 of file GridCtrl.cpp.
References m_cellDefault, m_cellFixedColDef, m_cellFixedRowColDef, m_cellFixedRowDef, m_cr3DFace, m_crWindowColour, m_crWindowText, CGridCell::SetBackClr(), CGridCell::SetGrid(), and CGridCell::SetTextClr().
Referenced by CGridCtrl().
void CGridCtrl::SetVirtualMode | ( | BOOL | bVirtual | ) |
Definition at line 4796 of file GridCtrl.cpp.
References DeleteAllItems(), FALSE, GVS_HEADER, m_bVirtualMode, SetAutoSizeStyle(), SetEditable(), SetFixedColumnSelection(), SetFixedRowSelection(), and SetHeaderSort().
BOOL CGridCtrl::SortItems | ( | PFNLVCOMPARE | pfnCompare, | |
int | nCol, | |||
BOOL | bAscending, | |||
LPARAM | data, | |||
int | low, | |||
int | high | |||
) | [protected] |
Definition at line 4044 of file GridCtrl.cpp.
References FALSE, GetCell(), GetColumnCount(), GetItemData(), GetRowCount(), m_arRowHeights, SetCell(), SortItems(), and TRUE.
BOOL CGridCtrl::SortItems | ( | PFNLVCOMPARE | pfnCompare, | |
int | nCol, | |||
BOOL | bAscending, | |||
LPARAM | data = 0 | |||
) |
Definition at line 4033 of file GridCtrl.cpp.
References GetFixedRowCount(), ResetSelectedRange(), SetFocusCell(), SetSortAscending(), and SetSortColumn().
Referenced by SortItems().
BOOL CGridCtrl::SortTextItems | ( | int | nCol, | |
BOOL | bAscending, | |||
int | low, | |||
int | high | |||
) | [protected] |
Definition at line 3960 of file GridCtrl.cpp.
References FALSE, GetCell(), GetColumnCount(), GetItemText(), GetRowCount(), m_arRowHeights, SetCell(), SortTextItems(), and TRUE.
BOOL CGridCtrl::SortTextItems | ( | int | nCol, | |
BOOL | bAscending | |||
) |
Definition at line 3950 of file GridCtrl.cpp.
References GetFixedRowCount(), ResetSelectedRange(), SetFocusCell(), SetSortAscending(), and SetSortColumn().
Referenced by OnFixedRowClick(), and SortTextItems().
friend class CGridCell [friend] |
Definition at line 186 of file GridCtrl.h.
friend class CGridCellBase [friend] |
Definition at line 187 of file GridCtrl.h.
CUIntArray CGridCtrl::m_arColWidths [protected] |
Definition at line 625 of file GridCtrl.h.
Referenced by AutoSize(), AutoSizeColumn(), CopyTextFromGrid(), Create(), CutSelectedText(), DeleteAllItems(), DeleteColumn(), ExpandColumnsToFit(), ExpandLastColumn(), GetColumnWidth(), GetVirtualWidth(), InsertColumn(), SetColumnCount(), and SetColumnWidth().
CUIntArray CGridCtrl::m_arRowHeights [protected] |
Definition at line 625 of file GridCtrl.h.
Referenced by AutoSize(), AutoSizeRow(), CopyTextFromGrid(), Create(), CutSelectedText(), DeleteAllItems(), DeleteRow(), ExpandRowsToFit(), GetRowHeight(), GetVirtualHeight(), InsertRow(), SetRowCount(), SetRowHeight(), SortItems(), and SortTextItems().
BOOL CGridCtrl::m_bAllowColHide [protected] |
Definition at line 617 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableColumnHide(), GetColumnHide(), and OnLButtonUp().
BOOL CGridCtrl::m_bAllowColumnResize [protected] |
Definition at line 647 of file GridCtrl.h.
Referenced by CGridCtrl(), GetColumnResize(), OnLButtonDown(), OnMouseMove(), and SetColumnResize().
BOOL CGridCtrl::m_bAllowDragAndDrop [protected] |
Definition at line 603 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableDragAndDrop(), GetDragAndDrop(), OnBeginDrag(), OnDragEnter(), OnDragOver(), OnDrop(), and OnLButtonDown().
BOOL CGridCtrl::m_bAllowDraw [protected] |
Definition at line 607 of file GridCtrl.h.
Referenced by CGridCtrl(), InvalidateCellRect(), OnDraw(), RedrawCell(), Refresh(), ResetScrollBars(), and SetRedraw().
BOOL CGridCtrl::m_bAllowRowHide [protected] |
Definition at line 617 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableRowHide(), GetRowHide(), and OnLButtonUp().
BOOL CGridCtrl::m_bAllowRowResize [protected] |
Definition at line 647 of file GridCtrl.h.
Referenced by CGridCtrl(), GetRowResize(), OnLButtonDown(), OnMouseMove(), and SetRowResize().
int CGridCtrl::m_bAscending [protected] |
Definition at line 675 of file GridCtrl.h.
Referenced by CGridCtrl(), GetSortAscending(), and SetSortAscending().
BOOL CGridCtrl::m_bAutoSizeSkipColHdr [protected] |
Definition at line 618 of file GridCtrl.h.
BOOL CGridCtrl::m_bDoubleBuffer [protected] |
Definition at line 612 of file GridCtrl.h.
Referenced by CGridCtrl(), GetDoubleBuffering(), and SetDoubleBuffering().
BOOL CGridCtrl::m_bEditable [protected] |
Definition at line 601 of file GridCtrl.h.
Referenced by CGridCtrl(), IsEditable(), and SetEditable().
BOOL CGridCtrl::m_bEnableSelection [protected] |
Definition at line 608 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableSelection(), IsSelectable(), OnSelecting(), OnUpdateEditSelectAll(), SelectAllCells(), SelectCells(), SelectColumns(), SelectRows(), and SetSelectedRange().
BOOL CGridCtrl::m_bFixedColumnSelection [protected] |
Definition at line 609 of file GridCtrl.h.
Referenced by CGridCtrl(), GetFixedColumnSelection(), and SetFixedColumnSelection().
BOOL CGridCtrl::m_bFixedRowSelection [protected] |
Definition at line 609 of file GridCtrl.h.
Referenced by CGridCtrl(), GetFixedRowSelection(), and SetFixedRowSelection().
BOOL CGridCtrl::m_bFrameFocus [protected] |
Definition at line 620 of file GridCtrl.h.
Referenced by CGridCtrl(), GetFrameFocusCell(), and SetFrameFocusCell().
BOOL CGridCtrl::m_bHandleTabKey [protected] |
Definition at line 611 of file GridCtrl.h.
Referenced by CGridCtrl(), GetHandleTabKey(), OnChar(), OnGetDlgCode(), and SetHandleTabKey().
BOOL CGridCtrl::m_bHiddenColUnhide [protected] |
Definition at line 616 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableHiddenColUnhide(), GetHiddenColUnhide(), and OnLButtonDown().
BOOL CGridCtrl::m_bHiddenRowUnhide [protected] |
Definition at line 616 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableHiddenRowUnhide(), GetHiddenRowUnhide(), and OnLButtonDown().
BOOL CGridCtrl::m_bListMode [protected] |
Definition at line 604 of file GridCtrl.h.
Referenced by CGridCtrl(), GetListMode(), GetSingleRowSelection(), OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), and SetListMode().
BOOL CGridCtrl::m_bModified [protected] |
BOOL CGridCtrl::m_bMouseButtonDown [protected] |
Definition at line 640 of file GridCtrl.h.
Referenced by CGridCtrl(), OnLButtonDown(), OnLButtonUp(), and OnMouseMove().
BOOL CGridCtrl::m_bMustUninitOLE [protected] |
BOOL CGridCtrl::m_bShadedPrintOut [protected] |
Definition at line 680 of file GridCtrl.h.
Referenced by CGridCtrl(), GetShadedPrintOut(), and SetShadedPrintOut().
BOOL CGridCtrl::m_bSingleColSelection [protected] |
Definition at line 606 of file GridCtrl.h.
Referenced by CGridCtrl(), GetSingleColSelection(), and SetSingleColSelection().
BOOL CGridCtrl::m_bSingleRowSelection [protected] |
Definition at line 605 of file GridCtrl.h.
Referenced by CGridCtrl(), GetSingleRowSelection(), and SetSingleRowSelection().
BOOL CGridCtrl::m_bSortOnClick [protected] |
Definition at line 610 of file GridCtrl.h.
Referenced by CGridCtrl(), GetHeaderSort(), and SetHeaderSort().
BOOL CGridCtrl::m_bTitleTips [protected] |
Definition at line 613 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableTitleTips(), GetTitleTips(), OnMouseMove(), and ~CGridCtrl().
BOOL CGridCtrl::m_bTrackFocusCell [protected] |
Definition at line 619 of file GridCtrl.h.
Referenced by CGridCtrl(), GetTrackFocusCell(), and SetTrackFocusCell().
BOOL CGridCtrl::m_bVirtualMode [protected] |
Definition at line 596 of file GridCtrl.h.
Referenced by CGridCtrl(), GetVirtualMode(), and SetVirtualMode().
BOOL CGridCtrl::m_bWysiwygPrinting [protected] |
Definition at line 615 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableWysiwygPrinting(), GetWysiwygPrinting(), and OnBeginPrinting().
CGridDefaultCell CGridCtrl::m_cellDefault [protected] |
Definition at line 630 of file GridCtrl.h.
Referenced by AutoFill(), Create(), GetDefaultCell(), GetDefCellHeight(), GetDefCellMargin(), GetDefCellWidth(), GetTextBkColor(), GetTextColor(), OnGetFont(), OnSetFont(), SetDefCellHeight(), SetDefCellMargin(), SetDefCellWidth(), SetRowCount(), SetTextBkColor(), SetTextColor(), and SetupDefaultCells().
CGridDefaultCell CGridCtrl::m_cellFixedColDef [protected] |
Definition at line 631 of file GridCtrl.h.
Referenced by GetDefaultCell(), OnSetFont(), SetColumnCount(), SetDefCellHeight(), SetDefCellMargin(), SetDefCellWidth(), SetFixedBkColor(), SetFixedTextColor(), and SetupDefaultCells().
CGridDefaultCell CGridCtrl::m_cellFixedRowColDef [protected] |
Definition at line 631 of file GridCtrl.h.
Referenced by GetDefaultCell(), OnSetFont(), SetDefCellHeight(), SetDefCellMargin(), SetDefCellWidth(), SetFixedBkColor(), SetFixedTextColor(), and SetupDefaultCells().
CGridDefaultCell CGridCtrl::m_cellFixedRowDef [protected] |
Definition at line 631 of file GridCtrl.h.
Referenced by GetDefaultCell(), GetFixedBkColor(), GetFixedTextColor(), InsertRow(), OnSetFont(), SetDefCellHeight(), SetDefCellMargin(), SetDefCellWidth(), SetFixedBkColor(), SetFixedTextColor(), and SetupDefaultCells().
CSize CGridCtrl::m_CharSize [protected] |
COLORREF CGridCtrl::m_cr3DFace [protected] |
Definition at line 592 of file GridCtrl.h.
Referenced by CGridCtrl(), OnSysColorChange(), and SetupDefaultCells().
COLORREF CGridCtrl::m_crFixedBkColour [protected] |
Definition at line 590 of file GridCtrl.h.
COLORREF CGridCtrl::m_crFixedTextColour [protected] |
Definition at line 590 of file GridCtrl.h.
COLORREF CGridCtrl::m_crGridBkColour [protected] |
COLORREF CGridCtrl::m_crGridLineColour [protected] |
Definition at line 591 of file GridCtrl.h.
Referenced by CGridCtrl(), GetGridLineColor(), OnDraw(), RedrawCell(), and SetGridLineColor().
COLORREF CGridCtrl::m_crShadow [protected] |
COLORREF CGridCtrl::m_crTTipBackClr [protected] |
Definition at line 594 of file GridCtrl.h.
Referenced by GetTitleTipBackClr(), and SetTitleTipBackClr().
COLORREF CGridCtrl::m_crTTipTextClr [protected] |
Definition at line 594 of file GridCtrl.h.
Referenced by GetTitleTipTextClr(), and SetTitleTipTextClr().
COLORREF CGridCtrl::m_crWindowColour [protected] |
Definition at line 592 of file GridCtrl.h.
Referenced by CGridCtrl(), OnSysColorChange(), and SetupDefaultCells().
COLORREF CGridCtrl::m_crWindowText [protected] |
Definition at line 592 of file GridCtrl.h.
Referenced by CGridCtrl(), OnSysColorChange(), and SetupDefaultCells().
CGridDropTarget CGridCtrl::m_DropTarget [protected] |
CCellID CGridCtrl::m_idCurrentCell [protected] |
Definition at line 643 of file GridCtrl.h.
Referenced by DeleteAllItems(), DeleteColumn(), DeleteRow(), GetFocusCell(), InsertColumn(), InsertRow(), OnChar(), OnEndInPlaceEdit(), OnKeyDown(), OnLButtonDown(), OnLButtonUp(), OnRButtonUp(), SetColumnCount(), SetFixedColumnCount(), SetFixedRowCount(), SetFocusCell(), and SetRowCount().
CCellID CGridCtrl::m_idTopLeftCell [protected] |
Definition at line 643 of file GridCtrl.h.
Referenced by GetTopleftNonFixedCell(), InsertColumn(), InsertRow(), OnHScroll(), OnVScroll(), ResetScrollBars(), SetColumnCount(), SetFixedColumnCount(), SetFixedRowCount(), SetRowCount(), and SetScrollPos32().
CCellID CGridCtrl::m_LastDragOverCell [protected] |
Definition at line 657 of file GridCtrl.h.
Referenced by OnDragEnter(), OnDragLeave(), OnDragOver(), and OnDrop().
CPoint CGridCtrl::m_LastMousePoint [protected] |
Definition at line 641 of file GridCtrl.h.
Referenced by OnLButtonDown(), OnLButtonUp(), and OnMouseMove().
CCellID CGridCtrl::m_LeftClickDownCell [protected] |
Definition at line 642 of file GridCtrl.h.
Referenced by OnLButtonDblClk(), OnLButtonDown(), OnLButtonUp(), and OnMouseMove().
CPoint CGridCtrl::m_LeftClickDownPoint [protected] |
CSize CGridCtrl::m_LogicalPageSize [protected] |
LPARAM CGridCtrl::m_lParam [protected] |
int CGridCtrl::m_MouseMode [protected] |
Definition at line 639 of file GridCtrl.h.
Referenced by CGridCtrl(), GetMouseMode(), OnBeginDrag(), OnCaptureChanged(), OnChar(), OnDrop(), OnFixedColumnClick(), OnFixedRowClick(), OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), OnSelecting(), OnSetCursor(), OnTimer(), and SetMouseMode().
UINT CGridCtrl::m_nAutoSizeColumnStyle [protected] |
Definition at line 621 of file GridCtrl.h.
Referenced by CGridCtrl(), GetAutoSizeStyle(), and SetAutoSizeStyle().
int CGridCtrl::m_nBarState [protected] |
Definition at line 614 of file GridCtrl.h.
Referenced by CGridCtrl(), EnableScrollBars(), IsVisibleHScroll(), and IsVisibleVScroll().
int CGridCtrl::m_nBottomMargin [protected] |
Definition at line 684 of file GridCtrl.h.
Referenced by GetPrintMarginInfo(), and SetPrintMarginInfo().
int CGridCtrl::m_nCols [protected] |
Definition at line 624 of file GridCtrl.h.
Referenced by AutoSizeColumn(), CGridCtrl(), Create(), CreateCell(), DeleteAllItems(), DeleteColumn(), GetCell(), GetColumnCount(), GetColumnWidth(), GetItemText(), InsertColumn(), InsertRow(), IsValid(), SetCell(), SetColumnCount(), SetColumnWidth(), SetRowCount(), and SetSelectedRange().
int CGridCtrl::m_nCurrPrintRow [protected] |
int CGridCtrl::m_nFixedCols [protected] |
Definition at line 624 of file GridCtrl.h.
Referenced by CGridCtrl(), CreateCell(), DeleteAllItems(), DeleteColumn(), GetCell(), GetCellFromPt(), GetCellOrigin(), GetFixedColumnCount(), GetFixedColumnWidth(), GetTopleftNonFixedCell(), InsertColumn(), OnDraw(), OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), OnMouseMove(), OnRButtonUp(), RedrawCell(), SelectAllCells(), SelectCells(), SelectColumns(), SetColumnCount(), SetFixedColumnCount(), and SetFocusCell().
int CGridCtrl::m_nFixedRows [protected] |
Definition at line 624 of file GridCtrl.h.
Referenced by CGridCtrl(), CreateCell(), DeleteAllItems(), DeleteRow(), GetCell(), GetCellFromPt(), GetCellOrigin(), GetFixedRowCount(), GetFixedRowHeight(), GetTopleftNonFixedCell(), InsertRow(), OnDraw(), OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), OnMouseMove(), OnRButtonUp(), RedrawCell(), SelectAllCells(), SelectCells(), SelectRows(), SetFixedRowCount(), SetFocusCell(), and SetRowCount().
int CGridCtrl::m_nFooterHeight [protected] |
Definition at line 684 of file GridCtrl.h.
Referenced by GetPrintMarginInfo(), OnBeginPrinting(), OnPrint(), and SetPrintMarginInfo().
int CGridCtrl::m_nGap [protected] |
Definition at line 684 of file GridCtrl.h.
Referenced by GetPrintMarginInfo(), OnBeginPrinting(), OnPrint(), and SetPrintMarginInfo().
int CGridCtrl::m_nGridLines [protected] |
Definition at line 600 of file GridCtrl.h.
Referenced by CGridCtrl(), GetGridLines(), OnDraw(), OnPrint(), PrintColumnHeadings(), PrintRowButtons(), RedrawCell(), and SetGridLines().
int CGridCtrl::m_nHeaderHeight [protected] |
Definition at line 684 of file GridCtrl.h.
Referenced by GetPrintMarginInfo(), OnBeginPrinting(), OnPrint(), and SetPrintMarginInfo().
int CGridCtrl::m_nHScrollMax [protected] |
Definition at line 626 of file GridCtrl.h.
Referenced by CGridCtrl(), OnHScroll(), OnKeyDown(), and ResetScrollBars().
int CGridCtrl::m_nLeftMargin [protected] |
Definition at line 684 of file GridCtrl.h.
Referenced by GetPrintMarginInfo(), OnBeginPrinting(), OnPrint(), and SetPrintMarginInfo().
int CGridCtrl::m_nNumPages [protected] |
int CGridCtrl::m_nPageHeight [protected] |
Definition at line 664 of file GridCtrl.h.
Referenced by OnBeginPrinting(), OnPrint(), and PrintRowButtons().
int CGridCtrl::m_nPageMultiplier [protected] |
int CGridCtrl::m_nPageWidth [protected] |
Definition at line 668 of file GridCtrl.h.
Referenced by OnBeginPrinting(), OnPrint(), and PrintColumnHeadings().
int CGridCtrl::m_nPrintColumn [protected] |
int CGridCtrl::m_nResizeCaptureRange [protected] |
Definition at line 646 of file GridCtrl.h.
Referenced by CGridCtrl(), MouseOverColumnResizeArea(), MouseOverRowResizeArea(), OnLButtonDblClk(), and OnLButtonDown().
int CGridCtrl::m_nRightMargin [protected] |
Definition at line 684 of file GridCtrl.h.
Referenced by GetPrintMarginInfo(), OnBeginPrinting(), OnPrint(), and SetPrintMarginInfo().
int CGridCtrl::m_nRows [protected] |
Definition at line 624 of file GridCtrl.h.
Referenced by AutoSizeRow(), CGridCtrl(), Create(), DeleteAllItems(), DeleteRow(), GetCell(), GetItemText(), GetRowCount(), GetRowHeight(), InsertColumn(), InsertRow(), IsValid(), SetCell(), SetColumnCount(), SetRowCount(), SetRowHeight(), and SetSelectedRange().
int CGridCtrl::m_nRowsPerWheelNotch [protected] |
int CGridCtrl::m_nSortColumn [protected] |
Definition at line 676 of file GridCtrl.h.
Referenced by CGridCtrl(), GetSortColumn(), and SetSortColumn().
int CGridCtrl::m_nTimerID [protected] |
Definition at line 644 of file GridCtrl.h.
Referenced by CGridCtrl(), OnCaptureChanged(), OnLButtonDown(), and OnLButtonUp().
int CGridCtrl::m_nTimerInterval [protected] |
int CGridCtrl::m_nTopMargin [protected] |
Definition at line 684 of file GridCtrl.h.
Referenced by GetPrintMarginInfo(), and SetPrintMarginInfo().
int CGridCtrl::m_nVScrollMax [protected] |
Definition at line 626 of file GridCtrl.h.
Referenced by CGridCtrl(), OnVScroll(), and ResetScrollBars().
CSize CGridCtrl::m_PaperSize [protected] |
GRIDCALLBACK CGridCtrl::m_pfnCallback [protected] |
Definition at line 598 of file GridCtrl.h.
Referenced by CGridCtrl(), GetCallbackFunc(), GetCell(), and SetCallbackFunc().
CImageList* CGridCtrl::m_pImageList [protected] |
Definition at line 633 of file GridCtrl.h.
Referenced by CGridCtrl(), GetImageList(), and SetImageList().
CMap<DWORD,DWORD, CCellID, CCellID&> CGridCtrl::m_PrevSelectedCellMap [protected] |
Definition at line 649 of file GridCtrl.h.
Referenced by CGridCtrl(), OnKeyDown(), OnLButtonDown(), ResetSelectedRange(), and SetSelectedRange().
CFont CGridCtrl::m_PrinterFont [protected] |
Definition at line 632 of file GridCtrl.h.
Referenced by OnBeginPrinting(), OnEndPrinting(), OnPrint(), PrintColumnHeadings(), PrintFooter(), PrintHeader(), and PrintRowButtons().
CRuntimeClass* CGridCtrl::m_pRtcDefault [protected] |
Definition at line 629 of file GridCtrl.h.
Referenced by CGridCtrl(), CreateCell(), and SetDefaultCellType().
CTypedPtrArray<CObArray, GRID_ROW*> CGridCtrl::m_RowData [protected] |
Definition at line 636 of file GridCtrl.h.
Referenced by DeleteAllItems(), DeleteColumn(), DeleteRow(), GetCell(), InsertColumn(), InsertRow(), SetCell(), SetColumnCount(), and SetRowCount().
CMap<DWORD,DWORD, CCellID, CCellID&> CGridCtrl::m_SelectedCellMap [protected] |
Definition at line 649 of file GridCtrl.h.
Referenced by CGridCtrl(), CutSelectedText(), GetSelectedCellRange(), GetSelectedCount(), IsCellSelected(), OnLButtonDown(), SetItemState(), and SetSelectedRange().
CCellID CGridCtrl::m_SelectionStartCell [protected] |
Definition at line 642 of file GridCtrl.h.
Referenced by OnKeyDown(), OnLButtonDown(), SelectCells(), SelectColumns(), and SelectRows().
CTitleTip CGridCtrl::m_TitleTip [protected] |
Definition at line 652 of file GridCtrl.h.
Referenced by Initialise(), OnEditCell(), OnHScroll(), OnLButtonDown(), OnMouseMove(), OnSysKeyDown(), OnVScroll(), and ~CGridCtrl().