CGridCtrl Class Reference

#include <GridCtrl.h>

Collaboration diagram for CGridCtrl:
Collaboration graph
[legend]

List of all members.

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)
CCellID GetCellFromPt (CPoint point, BOOL bAllowFixedCellCheck=TRUE)
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=3L)
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=3)
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 ()
CGridCellBaseGetDefaultCell (BOOL bFixedRow, BOOL bFixedCol) const
CGridCellBaseGetCell (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 SetItemTextFmt (int nRow, int nCol, LPCTSTR szFmt,...)
BOOL SetItemTextFmtID (int nRow, int nCol, UINT nID,...)
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 ()
void ClearCells (CCellRange Selection)
BOOL AutoSizeRow (int nRow, BOOL bResetScroll=TRUE)
BOOL AutoSizeColumn (int nCol, UINT nAutoSizeStyle=0, BOOL bResetScroll=TRUE)
void AutoSizeRows ()
void AutoSizeColumns (UINT nAutoSizeStyle=0)
void AutoSize (UINT nAutoSizeStyle=0)
void ExpandColumnsToFit (BOOL bExpandFixed=TRUE)
void ExpandLastColumn ()
void ExpandRowsToFit (BOOL bExpandFixed=TRUE)
void ExpandToFit (BOOL bExpandFixed=TRUE)
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, TCHAR chSeparator=_T(','))
BOOL Load (LPCTSTR filename, TCHAR chSeparator=_T(','))
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, BOOL bSelectPastedCells=TRUE)
virtual void OnEditCut ()
virtual void OnEditCopy ()
virtual void OnEditPaste ()
virtual void OnEditSelectAll ()
CCellID GetNextItem (CCellID &cell, int nFlags) const
BOOL SortItems (int nCol, BOOL bAscending, LPARAM data=0)
BOOL SortTextItems (int nCol, BOOL bAscending, LPARAM data=0)
BOOL SortItems (PFNLVCOMPARE pfnCompare, int nCol, BOOL bAscending, LPARAM data=0)
void SetCompareFunction (PFNLVCOMPARE pfnCompare)
void Print (CPrintDialog *pPrntDialog=NULL)
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 ()

Static Public Member Functions

static int CALLBACK pfnCellTextCompare (LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
static int CALLBACK pfnCellNumericCompare (LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)

Protected Types

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
}

Protected Member Functions

BOOL RegisterWindowClass ()
BOOL Initialise ()
void SetupDefaultCells ()
LRESULT SendMessageToParent (int nRow, int nCol, int nMessage) const
LRESULT SendDisplayRequestToParent (GV_DISPINFO *pDisplayInfo) const
LRESULT SendCacheHintToParent (const 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 GetTopleftNonFixedCell (BOOL bForceRecalculation=FALSE)
CCellRange GetUnobstructedNonFixedCellRange (BOOL bForceRecalculation=FALSE)
CCellRange GetVisibleNonFixedCellRange (LPRECT pRect=NULL, BOOL bForceRecalculation=FALSE)
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)
void ValidateAndModifyCellContents (int nRow, int nCol, LPCTSTR strText)
virtual void PreSubclassWindow ()
virtual void PrintFixedRowCells (int nStartColumn, int nStopColumn, int &row, CRect &rect, CDC *pDC, BOOL &bFirst)
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 void OnFixedColumnClick (CCellID &cell)
virtual void OnFixedRowClick (CCellID &cell)
virtual void OnEditCell (int nRow, int nCol, CPoint point, UINT nChar)
virtual void OnEndEditCell (int nRow, int nCol, CString str)
virtual BOOL ValidateEdit (int nRow, int nCol, LPCTSTR str)
virtual void EndEditing ()
virtual void OnDraw (CDC *pDC)
virtual CGridCellBaseCreateCell (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 &currentCell)
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 OnKeyUp (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 OnRButtonDown (UINT nFlags, CPoint point)
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 LRESULT OnImeChar (WPARAM wCharCode, LPARAM lParam)
afx_msg void OnEndInPlaceEdit (NMHDR *pNMHDR, LRESULT *pResult)

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_bLMouseButtonDown
BOOL m_bRMouseButtonDown
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
CCellID m_LastDragOverCell
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
PFNLVCOMPARE m_pfnCompare
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

Detailed Description

Definition at line 183 of file GridCtrl.h.


Member Enumeration Documentation

enum CGridCtrl::eMouseModes [protected]
Enumerator:
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 

Definition at line 777 of file GridCtrl.h.


Constructor & Destructor Documentation

CGridCtrl::CGridCtrl ( int  nRows = 0,
int  nCols = 0,
int  nFixedRows = 0,
int  nFixedCols = 0 
)

Definition at line 185 of file GridCtrl.cpp.

CGridCtrl::~CGridCtrl (  )  [virtual]

Definition at line 292 of file GridCtrl.cpp.


Member Function Documentation

void CGridCtrl::AutoFill (  ) 

Definition at line 4014 of file GridCtrl.cpp.

void CGridCtrl::AutoSize ( UINT  nAutoSizeStyle = 0  ) 

Definition at line 4825 of file GridCtrl.cpp.

BOOL CGridCtrl::AutoSizeColumn ( int  nCol,
UINT  nAutoSizeStyle = 0,
BOOL  bResetScroll = TRUE 
)

Definition at line 4709 of file GridCtrl.cpp.

void CGridCtrl::AutoSizeColumns ( UINT  nAutoSizeStyle = 0  ) 

Definition at line 4799 of file GridCtrl.cpp.

BOOL CGridCtrl::AutoSizeRow ( int  nRow,
BOOL  bResetScroll = TRUE 
)

Definition at line 4758 of file GridCtrl.cpp.

void CGridCtrl::AutoSizeRows (  ) 

Definition at line 4811 of file GridCtrl.cpp.

void CGridCtrl::ClearCells ( CCellRange  Selection  ) 

Definition at line 2245 of file GridCtrl.cpp.

COleDataSource * CGridCtrl::CopyTextFromGrid (  )  [virtual]

Definition at line 2282 of file GridCtrl.cpp.

BOOL CGridCtrl::Create ( const RECT &  rect,
CWnd *  parent,
UINT  nID,
DWORD  dwStyle = WS_CHILD | WS_BORDER | WS_TABSTOP | WS_VISIBLE 
)

Definition at line 383 of file GridCtrl.cpp.

CGridCellBase * CGridCtrl::CreateCell ( int  nRow,
int  nCol 
) [protected, virtual]

Definition at line 3851 of file GridCtrl.cpp.

void CGridCtrl::CutSelectedText (  )  [virtual]

Definition at line 2267 of file GridCtrl.cpp.

BOOL CGridCtrl::DeleteAllItems (  ) 

Definition at line 3981 of file GridCtrl.cpp.

BOOL CGridCtrl::DeleteColumn ( int  nColumn  ) 

Definition at line 3890 of file GridCtrl.cpp.

BOOL CGridCtrl::DeleteNonFixedRows (  ) 

Definition at line 3966 of file GridCtrl.cpp.

BOOL CGridCtrl::DeleteRow ( int  nRow  ) 

Definition at line 3927 of file GridCtrl.cpp.

void CGridCtrl::DestroyCell ( int  nRow,
int  nCol 
) [protected, virtual]

Definition at line 3878 of file GridCtrl.cpp.

void CGridCtrl::EnableColumnHide ( BOOL  bEnable = TRUE  )  [inline]

Definition at line 344 of file GridCtrl.h.

void CGridCtrl::EnableDragAndDrop ( BOOL  bAllow = TRUE  )  [inline]

Definition at line 314 of file GridCtrl.h.

void CGridCtrl::EnableHiddenColUnhide ( BOOL  bEnable = TRUE  )  [inline]

Definition at line 339 of file GridCtrl.h.

void CGridCtrl::EnableHiddenRowUnhide ( BOOL  bEnable = TRUE  )  [inline]

Definition at line 341 of file GridCtrl.h.

void CGridCtrl::EnableRowHide ( BOOL  bEnable = TRUE  )  [inline]

Definition at line 346 of file GridCtrl.h.

void CGridCtrl::EnableScrollBars ( int  nBar,
BOOL  bEnable = TRUE 
) [protected]

Definition at line 3016 of file GridCtrl.cpp.

void CGridCtrl::EnableSelection ( BOOL  bEnable = TRUE  )  [inline]

Definition at line 308 of file GridCtrl.h.

void CGridCtrl::EnableTitleTips ( BOOL  bEnable = TRUE  )  [inline]

Definition at line 326 of file GridCtrl.h.

void CGridCtrl::EnableWysiwygPrinting ( BOOL  bEnable = TRUE  )  [inline]

Definition at line 510 of file GridCtrl.h.

void CGridCtrl::EndEditing (  )  [protected, virtual]

Definition at line 7245 of file GridCtrl.cpp.

void CGridCtrl::EnsureVisible ( int  nRow,
int  nCol 
)

Definition at line 5156 of file GridCtrl.cpp.

void CGridCtrl::EnsureVisible ( CCellID cell  )  [inline]

Definition at line 426 of file GridCtrl.h.

void CGridCtrl::EraseBkgnd ( CDC *  pDC  )  [protected]

Definition at line 584 of file GridCtrl.cpp.

void CGridCtrl::ExpandColumnsToFit ( BOOL  bExpandFixed = TRUE  ) 

Definition at line 4887 of file GridCtrl.cpp.

void CGridCtrl::ExpandLastColumn (  ) 

Definition at line 4952 of file GridCtrl.cpp.

void CGridCtrl::ExpandRowsToFit ( BOOL  bExpandFixed = TRUE  ) 

Definition at line 4987 of file GridCtrl.cpp.

void CGridCtrl::ExpandToFit ( BOOL  bExpandFixed = TRUE  ) 

Definition at line 5054 of file GridCtrl.cpp.

int CGridCtrl::GetAutoSizeStyle (  )  [inline]

Definition at line 337 of file GridCtrl.h.

COLORREF CGridCtrl::GetBkColor (  )  [inline]

Definition at line 260 of file GridCtrl.h.

GRIDCALLBACK CGridCtrl::GetCallbackFunc (  )  [inline]

Definition at line 292 of file GridCtrl.h.

CGridCellBase * CGridCtrl::GetCell ( int  nRow,
int  nCol 
) const [inline]

Definition at line 797 of file GridCtrl.h.

CCellID CGridCtrl::GetCellFromPt ( CPoint  point,
BOOL  bAllowFixedCellCheck = TRUE 
)

Definition at line 2759 of file GridCtrl.cpp.

BOOL CGridCtrl::GetCellOrigin ( const CCellID cell,
LPPOINT  p 
)

Definition at line 3207 of file GridCtrl.cpp.

BOOL CGridCtrl::GetCellOrigin ( int  nRow,
int  nCol,
LPPOINT  p 
)

Definition at line 3165 of file GridCtrl.cpp.

CCellRange CGridCtrl::GetCellRange (  )  const

Definition at line 2972 of file GridCtrl.cpp.

BOOL CGridCtrl::GetCellRangeRect ( const CCellRange cellRange,
LPRECT  lpRect 
) [protected]

Definition at line 3254 of file GridCtrl.cpp.

BOOL CGridCtrl::GetCellRect ( const CCellID cell,
LPRECT  pRect 
)

Definition at line 3213 of file GridCtrl.cpp.

BOOL CGridCtrl::GetCellRect ( int  nRow,
int  nCol,
LPRECT  pRect 
)

Definition at line 3218 of file GridCtrl.cpp.

CSize CGridCtrl::GetCellTextExtent ( int  nRow,
int  nCol 
) [inline]

Definition at line 231 of file GridCtrl.h.

int CGridCtrl::GetColumnCount (  )  const [inline]

Definition at line 201 of file GridCtrl.h.

BOOL CGridCtrl::GetColumnHide (  )  [inline]

Definition at line 345 of file GridCtrl.h.

BOOL CGridCtrl::GetColumnResize (  )  const [inline]

Definition at line 319 of file GridCtrl.h.

int CGridCtrl::GetColumnWidth ( int  nCol  )  const

Definition at line 4658 of file GridCtrl.cpp.

CGridCellBase * CGridCtrl::GetDefaultCell ( BOOL  bFixedRow,
BOOL  bFixedCol 
) const [inline]

Definition at line 789 of file GridCtrl.h.

int CGridCtrl::GetDefCellHeight (  )  const [inline]

Definition at line 268 of file GridCtrl.h.

int CGridCtrl::GetDefCellMargin (  )  const [inline]

Definition at line 266 of file GridCtrl.h.

int CGridCtrl::GetDefCellWidth (  )  const [inline]

Definition at line 273 of file GridCtrl.h.

BOOL CGridCtrl::GetDoubleBuffering (  )  const [inline]

Definition at line 325 of file GridCtrl.h.

BOOL CGridCtrl::GetDragAndDrop (  )  const [inline]

Definition at line 315 of file GridCtrl.h.

COLORREF CGridCtrl::GetFixedBkColor (  )  const [inline]

Definition at line 256 of file GridCtrl.h.

int CGridCtrl::GetFixedColumnCount (  )  const [inline]

Definition at line 203 of file GridCtrl.h.

BOOL CGridCtrl::GetFixedColumnSelection (  )  [inline]

Definition at line 311 of file GridCtrl.h.

int CGridCtrl::GetFixedColumnWidth (  )  const

Definition at line 4700 of file GridCtrl.cpp.

int CGridCtrl::GetFixedRowCount (  )  const [inline]

Definition at line 202 of file GridCtrl.h.

int CGridCtrl::GetFixedRowHeight (  )  const

Definition at line 4691 of file GridCtrl.cpp.

BOOL CGridCtrl::GetFixedRowSelection (  )  [inline]

Definition at line 313 of file GridCtrl.h.

COLORREF CGridCtrl::GetFixedTextColor (  )  const [inline]

Definition at line 252 of file GridCtrl.h.

CCellID CGridCtrl::GetFocusCell (  )  const [inline]

Definition at line 285 of file GridCtrl.h.

BOOL CGridCtrl::GetFrameFocusCell (  )  [inline]

Definition at line 335 of file GridCtrl.h.

COLORREF CGridCtrl::GetGridBkColor (  )  const [inline]

Definition at line 234 of file GridCtrl.h.

COLORREF CGridCtrl::GetGridColor (  )  [inline]

Definition at line 258 of file GridCtrl.h.

COLORREF CGridCtrl::GetGridLineColor (  )  const [inline]

Definition at line 236 of file GridCtrl.h.

int CGridCtrl::GetGridLines (  )  const [inline]

Definition at line 299 of file GridCtrl.h.

BOOL CGridCtrl::GetHandleTabKey (  )  const [inline]

Definition at line 323 of file GridCtrl.h.

BOOL CGridCtrl::GetHeaderSort (  )  const [inline]

Definition at line 321 of file GridCtrl.h.

BOOL CGridCtrl::GetHiddenColUnhide (  )  [inline]

Definition at line 340 of file GridCtrl.h.

BOOL CGridCtrl::GetHiddenRowUnhide (  )  [inline]

Definition at line 342 of file GridCtrl.h.

CImageList* CGridCtrl::GetImageList (  )  const [inline]

Definition at line 296 of file GridCtrl.h.

BOOL CGridCtrl::GetItem ( GV_ITEM pItem  ) 

Definition at line 4329 of file GridCtrl.cpp.

COLORREF CGridCtrl::GetItemBkColour ( int  nRow,
int  nCol 
) const

Definition at line 4557 of file GridCtrl.cpp.

LPARAM CGridCtrl::GetItemData ( int  nRow,
int  nCol 
) const

Definition at line 4441 of file GridCtrl.cpp.

COLORREF CGridCtrl::GetItemFgColour ( int  nRow,
int  nCol 
) const

Definition at line 4581 of file GridCtrl.cpp.

const LOGFONT * CGridCtrl::GetItemFont ( int  nRow,
int  nCol 
)

Definition at line 4606 of file GridCtrl.cpp.

UINT CGridCtrl::GetItemFormat ( int  nRow,
int  nCol 
) const

Definition at line 4533 of file GridCtrl.cpp.

int CGridCtrl::GetItemImage ( int  nRow,
int  nCol 
) const

Definition at line 4464 of file GridCtrl.cpp.

UINT CGridCtrl::GetItemState ( int  nRow,
int  nCol 
) const

Definition at line 4509 of file GridCtrl.cpp.

CString CGridCtrl::GetItemText ( int  nRow,
int  nCol 
) const

Definition at line 7291 of file GridCtrl.cpp.

BOOL CGridCtrl::GetListMode (  )  const [inline]

Definition at line 303 of file GridCtrl.h.

BOOL CGridCtrl::GetModified ( int  nRow = -1,
int  nCol = -1 
)

Definition at line 5138 of file GridCtrl.cpp.

int CGridCtrl::GetMouseMode (  )  const [inline, protected]

Definition at line 558 of file GridCtrl.h.

CCellID CGridCtrl::GetNextItem ( CCellID cell,
int  nFlags 
) const

Definition at line 4033 of file GridCtrl.cpp.

CPoint CGridCtrl::GetPointClicked ( int  nRow,
int  nCol,
const CPoint &  point 
) [protected]

Definition at line 5653 of file GridCtrl.cpp.

void CGridCtrl::GetPrintMarginInfo ( int &  nHeaderHeight,
int &  nFooterHeight,
int &  nLeftMargin,
int &  nRightMargin,
int &  nTopMargin,
int &  nBottomMargin,
int &  nGap 
)

Definition at line 6311 of file GridCtrl.cpp.

int CGridCtrl::GetRowCount (  )  const [inline]

Definition at line 200 of file GridCtrl.h.

int CGridCtrl::GetRowHeight ( int  nRow  )  const

Definition at line 4649 of file GridCtrl.cpp.

BOOL CGridCtrl::GetRowHide (  )  [inline]

Definition at line 347 of file GridCtrl.h.

BOOL CGridCtrl::GetRowResize (  )  const [inline]

Definition at line 317 of file GridCtrl.h.

int CGridCtrl::GetScrollPos32 ( int  nBar,
BOOL  bGetTrackPos = FALSE 
) [protected]

Definition at line 2986 of file GridCtrl.cpp.

CCellRange CGridCtrl::GetSelectedCellRange (  )  const

Definition at line 2952 of file GridCtrl.cpp.

int CGridCtrl::GetSelectedCount (  )  const [inline]

Definition at line 281 of file GridCtrl.h.

BOOL CGridCtrl::GetShadedPrintOut ( void   )  [inline]

Definition at line 514 of file GridCtrl.h.

BOOL CGridCtrl::GetSingleColSelection (  )  [inline]

Definition at line 307 of file GridCtrl.h.

BOOL CGridCtrl::GetSingleRowSelection (  )  [inline]

Definition at line 305 of file GridCtrl.h.

BOOL CGridCtrl::GetSortAscending (  )  const [inline]

Definition at line 331 of file GridCtrl.h.

int CGridCtrl::GetSortColumn (  )  const [inline]

Definition at line 329 of file GridCtrl.h.

COLORREF CGridCtrl::GetTextBkColor (  )  [inline]

Definition at line 248 of file GridCtrl.h.

COLORREF CGridCtrl::GetTextColor (  )  [inline]

Definition at line 246 of file GridCtrl.h.

CSize CGridCtrl::GetTextExtent ( int  nRow,
int  nCol,
LPCTSTR  str 
)

Definition at line 7203 of file GridCtrl.cpp.

BOOL CGridCtrl::GetTextRect ( int  nRow,
int  nCol,
LPRECT  pRect 
)

Definition at line 3241 of file GridCtrl.cpp.

BOOL CGridCtrl::GetTextRect ( const CCellID cell,
LPRECT  pRect 
)

Definition at line 3236 of file GridCtrl.cpp.

COLORREF CGridCtrl::GetTitleTipBackClr (  )  [inline]

Definition at line 239 of file GridCtrl.h.

BOOL CGridCtrl::GetTitleTips (  )  [inline]

Definition at line 327 of file GridCtrl.h.

COLORREF CGridCtrl::GetTitleTipTextClr (  )  [inline]

Definition at line 241 of file GridCtrl.h.

CCellID CGridCtrl::GetTopleftNonFixedCell ( BOOL  bForceRecalculation = FALSE  )  [protected]

Definition at line 2845 of file GridCtrl.cpp.

BOOL CGridCtrl::GetTrackFocusCell (  )  [inline]

Definition at line 333 of file GridCtrl.h.

CCellRange CGridCtrl::GetUnobstructedNonFixedCellRange ( BOOL  bForceRecalculation = FALSE  )  [protected]

Definition at line 2914 of file GridCtrl.cpp.

long CGridCtrl::GetVirtualHeight (  )  const

Definition at line 4639 of file GridCtrl.cpp.

BOOL CGridCtrl::GetVirtualMode (  )  const [inline]

Definition at line 289 of file GridCtrl.h.

long CGridCtrl::GetVirtualWidth (  )  const

Definition at line 4629 of file GridCtrl.cpp.

CCellRange CGridCtrl::GetVisibleNonFixedCellRange ( LPRECT  pRect = NULL,
BOOL  bForceRecalculation = FALSE 
) [protected]

Definition at line 2869 of file GridCtrl.cpp.

BOOL CGridCtrl::GetWysiwygPrinting (  )  [inline]

Definition at line 511 of file GridCtrl.h.

BOOL CGridCtrl::Initialise (  )  [protected]

Definition at line 345 of file GridCtrl.cpp.

int CGridCtrl::InsertColumn ( LPCTSTR  strHeading,
UINT  nFormat = DT_CENTER|DT_VCENTER|DT_SINGLELINE,
int  nColumn = -1 
)

Definition at line 3635 of file GridCtrl.cpp.

int CGridCtrl::InsertRow ( LPCTSTR  strHeading,
int  nRow = -1 
)

Definition at line 3726 of file GridCtrl.cpp.

BOOL CGridCtrl::InvalidateCellRect ( const CCellRange cellRange  )  [protected]

Definition at line 5404 of file GridCtrl.cpp.

BOOL CGridCtrl::InvalidateCellRect ( const CCellID cell  )  [protected]

Definition at line 5378 of file GridCtrl.cpp.

BOOL CGridCtrl::InvalidateCellRect ( const int  row,
const int  col 
) [protected]

Definition at line 5383 of file GridCtrl.cpp.

BOOL CGridCtrl::IsCellEditable ( CCellID cell  )  const

Definition at line 5276 of file GridCtrl.cpp.

BOOL CGridCtrl::IsCellEditable ( int  nRow,
int  nCol 
) const

Definition at line 5281 of file GridCtrl.cpp.

BOOL CGridCtrl::IsCellFixed ( int  nRow,
int  nCol 
)

Definition at line 5106 of file GridCtrl.cpp.

BOOL CGridCtrl::IsCellSelected ( CCellID cell  )  const

Definition at line 5286 of file GridCtrl.cpp.

BOOL CGridCtrl::IsCellSelected ( int  nRow,
int  nCol 
) const

Definition at line 5291 of file GridCtrl.cpp.

BOOL CGridCtrl::IsCellVisible ( CCellID  cell  ) 

Definition at line 5307 of file GridCtrl.cpp.

BOOL CGridCtrl::IsCellVisible ( int  nRow,
int  nCol 
)

Definition at line 5312 of file GridCtrl.cpp.

BOOL CGridCtrl::IsEditable (  )  const [inline]

Definition at line 301 of file GridCtrl.h.

BOOL CGridCtrl::IsItemEditing ( int  nRow,
int  nCol 
)

Definition at line 4616 of file GridCtrl.cpp.

BOOL CGridCtrl::IsSelectable (  )  const [inline]

Definition at line 309 of file GridCtrl.h.

BOOL CGridCtrl::IsValid ( const CCellRange range  )  const

Definition at line 1775 of file GridCtrl.cpp.

BOOL CGridCtrl::IsValid ( const CCellID cell  )  const

Definition at line 1768 of file GridCtrl.cpp.

BOOL CGridCtrl::IsValid ( int  nRow,
int  nCol 
) const

Definition at line 1763 of file GridCtrl.cpp.

BOOL CGridCtrl::IsVisibleHScroll (  )  [inline, protected]

Definition at line 568 of file GridCtrl.h.

BOOL CGridCtrl::IsVisibleVScroll (  )  [inline, protected]

Definition at line 567 of file GridCtrl.h.

BOOL CGridCtrl::Load ( LPCTSTR  filename,
TCHAR  chSeparator = _T(',') 
)

Definition at line 6983 of file GridCtrl.cpp.

BOOL CGridCtrl::MouseOverColumnResizeArea ( CPoint &  point  )  [protected]

Definition at line 2735 of file GridCtrl.cpp.

BOOL CGridCtrl::MouseOverRowResizeArea ( CPoint &  point  )  [protected]

Definition at line 2713 of file GridCtrl.cpp.

void CGridCtrl::OnBeginPrinting ( CDC *  pDC,
CPrintInfo *  pInfo 
) [virtual]

Definition at line 6389 of file GridCtrl.cpp.

void CGridCtrl::OnCaptureChanged ( CWnd *  pWnd  )  [protected]

Definition at line 715 of file GridCtrl.cpp.

void CGridCtrl::OnChar ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
) [protected]

Definition at line 1241 of file GridCtrl.cpp.

void CGridCtrl::OnDraw ( CDC *  pDC  )  [protected, virtual]

Definition at line 1537 of file GridCtrl.cpp.

void CGridCtrl::OnEditCell ( int  nRow,
int  nCol,
CPoint  point,
UINT  nChar 
) [protected, virtual]

Definition at line 7213 of file GridCtrl.cpp.

void CGridCtrl::OnEditCopy (  )  [virtual]

Definition at line 2617 of file GridCtrl.cpp.

void CGridCtrl::OnEditCut (  )  [virtual]

Definition at line 2604 of file GridCtrl.cpp.

void CGridCtrl::OnEditPaste (  )  [virtual]

Definition at line 2626 of file GridCtrl.cpp.

void CGridCtrl::OnEditSelectAll (  )  [virtual]

Definition at line 2671 of file GridCtrl.cpp.

void CGridCtrl::OnEndEditCell ( int  nRow,
int  nCol,
CString  str 
) [protected, virtual]

Definition at line 7255 of file GridCtrl.cpp.

void CGridCtrl::OnEndInPlaceEdit ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 1265 of file GridCtrl.cpp.

void CGridCtrl::OnEndPrinting ( CDC *  pDC,
CPrintInfo *  pInfo 
) [virtual]

Definition at line 6934 of file GridCtrl.cpp.

BOOL CGridCtrl::OnEraseBkgnd ( CDC *  pDC  )  [protected]

Definition at line 575 of file GridCtrl.cpp.

void CGridCtrl::OnFixedColumnClick ( CCellID cell  )  [protected, virtual]

Definition at line 7173 of file GridCtrl.cpp.

void CGridCtrl::OnFixedRowClick ( CCellID cell  )  [protected, virtual]

Definition at line 7141 of file GridCtrl.cpp.

UINT CGridCtrl::OnGetDlgCode (  )  [protected]

Definition at line 667 of file GridCtrl.cpp.

LRESULT CGridCtrl::OnGetFont ( WPARAM  hFont,
LPARAM  lParam 
) [protected]

Definition at line 3293 of file GridCtrl.cpp.

void CGridCtrl::OnHScroll ( UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar 
) [protected]

Definition at line 1296 of file GridCtrl.cpp.

LRESULT CGridCtrl::OnImeChar ( WPARAM  wCharCode,
LPARAM  lParam 
) [protected]

Definition at line 1254 of file GridCtrl.cpp.

void CGridCtrl::OnKeyDown ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
) [protected]

Definition at line 854 of file GridCtrl.cpp.

void CGridCtrl::OnKeyUp ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
) [protected]

Definition at line 1226 of file GridCtrl.cpp.

void CGridCtrl::OnLButtonDblClk ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 5664 of file GridCtrl.cpp.

void CGridCtrl::OnLButtonDown ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 5778 of file GridCtrl.cpp.

void CGridCtrl::OnLButtonUp ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 6122 of file GridCtrl.cpp.

void CGridCtrl::OnMouseMove ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 5476 of file GridCtrl.cpp.

void CGridCtrl::OnPaint (  )  [protected]

Definition at line 562 of file GridCtrl.cpp.

void CGridCtrl::OnPrint ( CDC *  pDC,
CPrintInfo *  pInfo 
) [virtual]

Definition at line 6494 of file GridCtrl.cpp.

void CGridCtrl::OnRButtonDown ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 6242 of file GridCtrl.cpp.

void CGridCtrl::OnRButtonUp ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 6255 of file GridCtrl.cpp.

void CGridCtrl::OnSelecting ( const CCellID currentCell  )  [protected]

Definition at line 2195 of file GridCtrl.cpp.

BOOL CGridCtrl::OnSetCursor ( CWnd *  pWnd,
UINT  nHitTest,
UINT  message 
) [protected]

Definition at line 3302 of file GridCtrl.cpp.

LRESULT CGridCtrl::OnSetFont ( WPARAM  hFont,
LPARAM  lParam 
) [protected]

Definition at line 3274 of file GridCtrl.cpp.

void CGridCtrl::OnSize ( UINT  nType,
int  cx,
int  cy 
) [protected]

Definition at line 642 of file GridCtrl.cpp.

void CGridCtrl::OnSysColorChange (  )  [protected]

Definition at line 679 of file GridCtrl.cpp.

void CGridCtrl::OnSysKeyDown ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
) [protected]

Definition at line 1231 of file GridCtrl.cpp.

void CGridCtrl::OnTimer ( UINT  nIDEvent  )  [protected]

Definition at line 775 of file GridCtrl.cpp.

void CGridCtrl::OnUpdateEditCopy ( CCmdUI *  pCmdUI  )  [protected]

Definition at line 2679 of file GridCtrl.cpp.

void CGridCtrl::OnUpdateEditCut ( CCmdUI *  pCmdUI  )  [protected]

Definition at line 2686 of file GridCtrl.cpp.

void CGridCtrl::OnUpdateEditPaste ( CCmdUI *  pCmdUI  )  [protected]

Definition at line 2693 of file GridCtrl.cpp.

void CGridCtrl::OnUpdateEditSelectAll ( CCmdUI *  pCmdUI  )  [protected]

Definition at line 2704 of file GridCtrl.cpp.

void CGridCtrl::OnVScroll ( UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar 
) [protected]

Definition at line 1416 of file GridCtrl.cpp.

BOOL CGridCtrl::PasteTextToGrid ( CCellID  cell,
COleDataObject *  pDataObject,
BOOL  bSelectPastedCells = TRUE 
) [virtual]

Definition at line 2353 of file GridCtrl.cpp.

int CALLBACK CGridCtrl::pfnCellNumericCompare ( LPARAM  lParam1,
LPARAM  lParam2,
LPARAM  lParamSort 
) [static]

Definition at line 4199 of file GridCtrl.cpp.

int CALLBACK CGridCtrl::pfnCellTextCompare ( LPARAM  lParam1,
LPARAM  lParam2,
LPARAM  lParamSort 
) [static]

Definition at line 4188 of file GridCtrl.cpp.

void CGridCtrl::PreSubclassWindow (  )  [protected, virtual]

Definition at line 436 of file GridCtrl.cpp.

void CGridCtrl::Print ( CPrintDialog *  pPrntDialog = NULL  ) 

Definition at line 6324 of file GridCtrl.cpp.

void CGridCtrl::PrintColumnHeadings ( CDC *  pDC,
CPrintInfo *  pInfo 
) [protected, virtual]

Definition at line 6746 of file GridCtrl.cpp.

void CGridCtrl::PrintFixedRowCells ( int  nStartColumn,
int  nStopColumn,
int &  row,
CRect &  rect,
CDC *  pDC,
BOOL &  bFirst 
) [protected, virtual]

Definition at line 6695 of file GridCtrl.cpp.

void CGridCtrl::PrintFooter ( CDC *  pDC,
CPrintInfo *  pInfo 
) [protected, virtual]

Definition at line 6891 of file GridCtrl.cpp.

void CGridCtrl::PrintHeader ( CDC *  pDC,
CPrintInfo *  pInfo 
) [protected, virtual]

Definition at line 6846 of file GridCtrl.cpp.

void CGridCtrl::PrintRowButtons ( CDC *  pDC,
CPrintInfo *   
) [protected, virtual]

Definition at line 6791 of file GridCtrl.cpp.

BOOL CGridCtrl::RedrawCell ( const CCellID cell,
CDC *  pDC = NULL 
)

Definition at line 1803 of file GridCtrl.cpp.

BOOL CGridCtrl::RedrawCell ( int  nRow,
int  nCol,
CDC *  pDC = NULL 
)

Definition at line 1808 of file GridCtrl.cpp.

BOOL CGridCtrl::RedrawColumn ( int  col  ) 

Definition at line 1884 of file GridCtrl.cpp.

BOOL CGridCtrl::RedrawRow ( int  row  ) 

Definition at line 1870 of file GridCtrl.cpp.

void CGridCtrl::Refresh (  ) 

Definition at line 5149 of file GridCtrl.cpp.

BOOL CGridCtrl::RegisterWindowClass (  )  [protected]

Definition at line 312 of file GridCtrl.cpp.

void CGridCtrl::ResetScrollBars (  )  [protected]

Definition at line 3049 of file GridCtrl.cpp.

void CGridCtrl::ResetSelectedRange (  )  [protected]

Definition at line 2978 of file GridCtrl.cpp.

BOOL CGridCtrl::Save ( LPCTSTR  filename,
TCHAR  chSeparator = _T(',') 
)

Definition at line 6946 of file GridCtrl.cpp.

void CGridCtrl::SelectAllCells (  )  [protected]

Definition at line 2111 of file GridCtrl.cpp.

void CGridCtrl::SelectCells ( CCellID  currentCell,
BOOL  bForceRedraw = FALSE,
BOOL  bSelectCells = TRUE 
) [protected]

Definition at line 2170 of file GridCtrl.cpp.

void CGridCtrl::SelectColumns ( CCellID  currentCell,
BOOL  bForceRedraw = FALSE,
BOOL  bSelectCells = TRUE 
) [protected]

Definition at line 2120 of file GridCtrl.cpp.

void CGridCtrl::SelectRows ( CCellID  currentCell,
BOOL  bForceRedraw = FALSE,
BOOL  bSelectCells = TRUE 
) [protected]

Definition at line 2145 of file GridCtrl.cpp.

LRESULT CGridCtrl::SendCacheHintToParent ( const CCellRange range  )  const [protected]

Definition at line 488 of file GridCtrl.cpp.

LRESULT CGridCtrl::SendDisplayRequestToParent ( GV_DISPINFO pDisplayInfo  )  const [protected]

Definition at line 469 of file GridCtrl.cpp.

LRESULT CGridCtrl::SendMessageToParent ( int  nRow,
int  nCol,
int  nMessage 
) const [protected]

Definition at line 449 of file GridCtrl.cpp.

void CGridCtrl::SetAutoSizeStyle ( int  nStyle = 3  )  [inline]

Definition at line 336 of file GridCtrl.h.

void CGridCtrl::SetBkColor ( COLORREF  clr  )  [inline]

Definition at line 259 of file GridCtrl.h.

void CGridCtrl::SetCallbackFunc ( GRIDCALLBACK  pCallback,
LPARAM  lParam 
) [inline]

Definition at line 290 of file GridCtrl.h.

BOOL CGridCtrl::SetCell ( int  nRow,
int  nCol,
CGridCellBase pCell 
) [inline, protected]

Definition at line 850 of file GridCtrl.h.

BOOL CGridCtrl::SetCellType ( int  nRow,
int  nCol,
CRuntimeClass *  pRuntimeClass 
)

Definition at line 3811 of file GridCtrl.cpp.

BOOL CGridCtrl::SetColumnCount ( int  nCols = 10  ) 

Definition at line 3553 of file GridCtrl.cpp.

void CGridCtrl::SetColumnResize ( BOOL  bResize = TRUE  )  [inline]

Definition at line 318 of file GridCtrl.h.

BOOL CGridCtrl::SetColumnWidth ( int  col,
int  width 
)

Definition at line 4679 of file GridCtrl.cpp.

void CGridCtrl::SetCompareFunction ( PFNLVCOMPARE  pfnCompare  ) 

Definition at line 4157 of file GridCtrl.cpp.

BOOL CGridCtrl::SetDefaultCellType ( CRuntimeClass *  pRuntimeClass  ) 

Definition at line 3838 of file GridCtrl.cpp.

void CGridCtrl::SetDefCellHeight ( int  nHeight  )  [inline]

Definition at line 269 of file GridCtrl.h.

void CGridCtrl::SetDefCellMargin ( int  nMargin  )  [inline]

Definition at line 262 of file GridCtrl.h.

void CGridCtrl::SetDefCellWidth ( int  nWidth  )  [inline]

Definition at line 274 of file GridCtrl.h.

void CGridCtrl::SetDoubleBuffering ( BOOL  bBuffer = TRUE  )  [inline]

Definition at line 324 of file GridCtrl.h.

void CGridCtrl::SetEditable ( BOOL  bEditable = TRUE  )  [inline]

Definition at line 300 of file GridCtrl.h.

void CGridCtrl::SetFixedBkColor ( COLORREF  clr  )  [inline]

Definition at line 253 of file GridCtrl.h.

BOOL CGridCtrl::SetFixedColumnCount ( int  nFixedCols = 1  ) 

Definition at line 3400 of file GridCtrl.cpp.

void CGridCtrl::SetFixedColumnSelection ( BOOL  bSelect  )  [inline]

Definition at line 310 of file GridCtrl.h.

BOOL CGridCtrl::SetFixedRowCount ( int  nFixedRows = 1  ) 

Definition at line 3344 of file GridCtrl.cpp.

void CGridCtrl::SetFixedRowSelection ( BOOL  bSelect  )  [inline]

Definition at line 312 of file GridCtrl.h.

void CGridCtrl::SetFixedTextColor ( COLORREF  clr  )  [inline]

Definition at line 249 of file GridCtrl.h.

CCellID CGridCtrl::SetFocusCell ( int  nRow,
int  nCol 
)

Definition at line 1899 of file GridCtrl.cpp.

CCellID CGridCtrl::SetFocusCell ( CCellID  cell  ) 

Definition at line 1904 of file GridCtrl.cpp.

void CGridCtrl::SetFrameFocusCell ( BOOL  bFrame  )  [inline]

Definition at line 334 of file GridCtrl.h.

void CGridCtrl::SetGridBkColor ( COLORREF  clr  )  [inline]

Definition at line 233 of file GridCtrl.h.

void CGridCtrl::SetGridColor ( COLORREF  clr  )  [inline]

Definition at line 257 of file GridCtrl.h.

void CGridCtrl::SetGridLineColor ( COLORREF  clr  )  [inline]

Definition at line 235 of file GridCtrl.h.

void CGridCtrl::SetGridLines ( int  nWhichLines = 3L  ) 

Definition at line 5082 of file GridCtrl.cpp.

void CGridCtrl::SetHandleTabKey ( BOOL  bHandleTab = TRUE  )  [inline]

Definition at line 322 of file GridCtrl.h.

void CGridCtrl::SetHeaderSort ( BOOL  bSortOnClick = TRUE  )  [inline]

Definition at line 320 of file GridCtrl.h.

void CGridCtrl::SetImageList ( CImageList *  pList  )  [inline]

Definition at line 295 of file GridCtrl.h.

BOOL CGridCtrl::SetItem ( const GV_ITEM pItem  ) 

Definition at line 4296 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemBkColour ( int  nRow,
int  nCol,
COLORREF  cr = CLR_DEFAULT 
)

Definition at line 4543 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemData ( int  nRow,
int  nCol,
LPARAM  lParam 
)

Definition at line 4427 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemFgColour ( int  nRow,
int  nCol,
COLORREF  cr = CLR_DEFAULT 
)

Definition at line 4567 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemFont ( int  nRow,
int  nCol,
const LOGFONT *  lf 
)

Definition at line 4591 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemFormat ( int  nRow,
int  nCol,
UINT  nFormat 
)

Definition at line 4519 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemImage ( int  nRow,
int  nCol,
int  iImage 
)

Definition at line 4450 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemState ( int  nRow,
int  nCol,
UINT  state 
)

Definition at line 4474 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemText ( int  nRow,
int  nCol,
LPCTSTR  str 
)

Definition at line 4359 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemTextFmt ( int  nRow,
int  nCol,
LPCTSTR  szFmt,
  ... 
)

Definition at line 4376 of file GridCtrl.cpp.

BOOL CGridCtrl::SetItemTextFmtID ( int  nRow,
int  nCol,
UINT  nID,
  ... 
)

Definition at line 4402 of file GridCtrl.cpp.

void CGridCtrl::SetListMode ( BOOL  bEnableListMode = TRUE  ) 

Definition at line 5088 of file GridCtrl.cpp.

void CGridCtrl::SetModified ( BOOL  bModified = TRUE,
int  nRow = -1,
int  nCol = -1 
)

Definition at line 5111 of file GridCtrl.cpp.

int CGridCtrl::SetMouseMode ( int  nMode  )  [inline, protected]

Definition at line 557 of file GridCtrl.h.

void CGridCtrl::SetPrintMarginInfo ( int  nHeaderHeight,
int  nFooterHeight,
int  nLeftMargin,
int  nRightMargin,
int  nTopMargin,
int  nBottomMargin,
int  nGap 
)

Definition at line 6290 of file GridCtrl.cpp.

void CGridCtrl::SetRedraw ( BOOL  bAllowDraw,
BOOL  bResetScrollBars = FALSE 
)

Definition at line 1785 of file GridCtrl.cpp.

BOOL CGridCtrl::SetRowCount ( int  nRows = 10  ) 

Definition at line 3457 of file GridCtrl.cpp.

BOOL CGridCtrl::SetRowHeight ( int  row,
int  height 
)

Definition at line 4667 of file GridCtrl.cpp.

void CGridCtrl::SetRowResize ( BOOL  bResize = TRUE  )  [inline]

Definition at line 316 of file GridCtrl.h.

BOOL CGridCtrl::SetScrollPos32 ( int  nBar,
int  nPos,
BOOL  bRedraw = TRUE 
) [protected]

Definition at line 3005 of file GridCtrl.cpp.

void CGridCtrl::SetSelectedRange ( int  nMinRow,
int  nMinCol,
int  nMaxRow,
int  nMaxCol,
BOOL  bForceRepaint = FALSE,
BOOL  bSelectCells = TRUE 
)

Definition at line 1975 of file GridCtrl.cpp.

void CGridCtrl::SetSelectedRange ( const CCellRange Range,
BOOL  bForceRepaint = FALSE,
BOOL  bSelectCells = TRUE 
)

Definition at line 1967 of file GridCtrl.cpp.

void CGridCtrl::SetShadedPrintOut ( BOOL  bEnable = TRUE  )  [inline]

Definition at line 513 of file GridCtrl.h.

void CGridCtrl::SetSingleColSelection ( BOOL  bSing = TRUE  )  [inline]

Definition at line 306 of file GridCtrl.h.

void CGridCtrl::SetSingleRowSelection ( BOOL  bSing = TRUE  )  [inline]

Definition at line 304 of file GridCtrl.h.

void CGridCtrl::SetSortAscending ( BOOL  bAscending  )  [inline]

Definition at line 330 of file GridCtrl.h.

void CGridCtrl::SetSortColumn ( int  nCol  ) 

Definition at line 5097 of file GridCtrl.cpp.

void CGridCtrl::SetTextBkColor ( COLORREF  clr  )  [inline]

Definition at line 247 of file GridCtrl.h.

void CGridCtrl::SetTextColor ( COLORREF  clr  )  [inline]

Definition at line 245 of file GridCtrl.h.

void CGridCtrl::SetTitleTipBackClr ( COLORREF  clr = CLR_DEFAULT  )  [inline]

Definition at line 238 of file GridCtrl.h.

void CGridCtrl::SetTitleTipTextClr ( COLORREF  clr = CLR_DEFAULT  )  [inline]

Definition at line 240 of file GridCtrl.h.

void CGridCtrl::SetTrackFocusCell ( BOOL  bTrack  )  [inline]

Definition at line 332 of file GridCtrl.h.

void CGridCtrl::SetupDefaultCells (  )  [protected]

Definition at line 419 of file GridCtrl.cpp.

void CGridCtrl::SetVirtualMode ( BOOL  bVirtual  ) 

Definition at line 5066 of file GridCtrl.cpp.

BOOL CGridCtrl::SortItems ( PFNLVCOMPARE  pfnCompare,
int  nCol,
BOOL  bAscending,
LPARAM  data,
int  low,
int  high 
) [protected]

Definition at line 4219 of file GridCtrl.cpp.

BOOL CGridCtrl::SortItems ( PFNLVCOMPARE  pfnCompare,
int  nCol,
BOOL  bAscending,
LPARAM  data = 0 
)

Definition at line 4178 of file GridCtrl.cpp.

BOOL CGridCtrl::SortItems ( int  nCol,
BOOL  bAscending,
LPARAM  data = 0 
)

Definition at line 4164 of file GridCtrl.cpp.

BOOL CGridCtrl::SortTextItems ( int  nCol,
BOOL  bAscending,
int  low,
int  high 
) [protected]
BOOL CGridCtrl::SortTextItems ( int  nCol,
BOOL  bAscending,
LPARAM  data = 0 
)

Definition at line 4148 of file GridCtrl.cpp.

void CGridCtrl::ValidateAndModifyCellContents ( int  nRow,
int  nCol,
LPCTSTR  strText 
) [protected]

Definition at line 2220 of file GridCtrl.cpp.

BOOL CGridCtrl::ValidateEdit ( int  nRow,
int  nCol,
LPCTSTR  str 
) [protected, virtual]

Definition at line 7280 of file GridCtrl.cpp.


Friends And Related Function Documentation

friend class CGridCell [friend]

Definition at line 186 of file GridCtrl.h.

friend class CGridCellBase [friend]

Definition at line 187 of file GridCtrl.h.


Member Data Documentation

CUIntArray CGridCtrl::m_arColWidths [protected]

Definition at line 661 of file GridCtrl.h.

CUIntArray CGridCtrl::m_arRowHeights [protected]

Definition at line 661 of file GridCtrl.h.

BOOL CGridCtrl::m_bAllowColHide [protected]

Definition at line 653 of file GridCtrl.h.

Definition at line 683 of file GridCtrl.h.

Definition at line 639 of file GridCtrl.h.

BOOL CGridCtrl::m_bAllowDraw [protected]

Definition at line 643 of file GridCtrl.h.

BOOL CGridCtrl::m_bAllowRowHide [protected]

Definition at line 653 of file GridCtrl.h.

BOOL CGridCtrl::m_bAllowRowResize [protected]

Definition at line 683 of file GridCtrl.h.

int CGridCtrl::m_bAscending [protected]

Definition at line 710 of file GridCtrl.h.

Definition at line 654 of file GridCtrl.h.

BOOL CGridCtrl::m_bDoubleBuffer [protected]

Definition at line 648 of file GridCtrl.h.

BOOL CGridCtrl::m_bEditable [protected]

Definition at line 637 of file GridCtrl.h.

Definition at line 644 of file GridCtrl.h.

Definition at line 645 of file GridCtrl.h.

Definition at line 645 of file GridCtrl.h.

BOOL CGridCtrl::m_bFrameFocus [protected]

Definition at line 656 of file GridCtrl.h.

BOOL CGridCtrl::m_bHandleTabKey [protected]

Definition at line 647 of file GridCtrl.h.

Definition at line 652 of file GridCtrl.h.

Definition at line 652 of file GridCtrl.h.

BOOL CGridCtrl::m_bListMode [protected]

Definition at line 640 of file GridCtrl.h.

Definition at line 676 of file GridCtrl.h.

BOOL CGridCtrl::m_bModified [protected]

Definition at line 638 of file GridCtrl.h.

Definition at line 676 of file GridCtrl.h.

BOOL CGridCtrl::m_bShadedPrintOut [protected]

Definition at line 716 of file GridCtrl.h.

Definition at line 642 of file GridCtrl.h.

Definition at line 641 of file GridCtrl.h.

BOOL CGridCtrl::m_bSortOnClick [protected]

Definition at line 646 of file GridCtrl.h.

BOOL CGridCtrl::m_bTitleTips [protected]

Definition at line 649 of file GridCtrl.h.

BOOL CGridCtrl::m_bTrackFocusCell [protected]

Definition at line 655 of file GridCtrl.h.

BOOL CGridCtrl::m_bVirtualMode [protected]

Definition at line 632 of file GridCtrl.h.

Definition at line 651 of file GridCtrl.h.

Definition at line 666 of file GridCtrl.h.

Definition at line 667 of file GridCtrl.h.

Definition at line 667 of file GridCtrl.h.

Definition at line 667 of file GridCtrl.h.

CSize CGridCtrl::m_CharSize [protected]

Definition at line 698 of file GridCtrl.h.

COLORREF CGridCtrl::m_cr3DFace [protected]

Definition at line 628 of file GridCtrl.h.

COLORREF CGridCtrl::m_crFixedBkColour [protected]

Definition at line 626 of file GridCtrl.h.

COLORREF CGridCtrl::m_crFixedTextColour [protected]

Definition at line 626 of file GridCtrl.h.

COLORREF CGridCtrl::m_crGridBkColour [protected]

Definition at line 627 of file GridCtrl.h.

COLORREF CGridCtrl::m_crGridLineColour [protected]

Definition at line 627 of file GridCtrl.h.

COLORREF CGridCtrl::m_crShadow [protected]

Definition at line 628 of file GridCtrl.h.

COLORREF CGridCtrl::m_crTTipBackClr [protected]

Definition at line 630 of file GridCtrl.h.

COLORREF CGridCtrl::m_crTTipTextClr [protected]

Definition at line 630 of file GridCtrl.h.

COLORREF CGridCtrl::m_crWindowColour [protected]

Definition at line 628 of file GridCtrl.h.

COLORREF CGridCtrl::m_crWindowText [protected]

Definition at line 628 of file GridCtrl.h.

Definition at line 679 of file GridCtrl.h.

Definition at line 679 of file GridCtrl.h.

Definition at line 692 of file GridCtrl.h.

CPoint CGridCtrl::m_LastMousePoint [protected]

Definition at line 677 of file GridCtrl.h.

Definition at line 678 of file GridCtrl.h.

CPoint CGridCtrl::m_LeftClickDownPoint [protected]

Definition at line 677 of file GridCtrl.h.

CSize CGridCtrl::m_LogicalPageSize [protected]

Definition at line 700 of file GridCtrl.h.

LPARAM CGridCtrl::m_lParam [protected]

Definition at line 633 of file GridCtrl.h.

int CGridCtrl::m_MouseMode [protected]

Definition at line 675 of file GridCtrl.h.

Definition at line 657 of file GridCtrl.h.

int CGridCtrl::m_nBarState [protected]

Definition at line 650 of file GridCtrl.h.

int CGridCtrl::m_nBottomMargin [protected]

Definition at line 720 of file GridCtrl.h.

int CGridCtrl::m_nCols [protected]

Definition at line 660 of file GridCtrl.h.

int CGridCtrl::m_nCurrPrintRow [protected]

Definition at line 705 of file GridCtrl.h.

int CGridCtrl::m_nFixedCols [protected]

Definition at line 660 of file GridCtrl.h.

int CGridCtrl::m_nFixedRows [protected]

Definition at line 660 of file GridCtrl.h.

int CGridCtrl::m_nFooterHeight [protected]

Definition at line 720 of file GridCtrl.h.

int CGridCtrl::m_nGap [protected]

Definition at line 720 of file GridCtrl.h.

int CGridCtrl::m_nGridLines [protected]

Definition at line 636 of file GridCtrl.h.

int CGridCtrl::m_nHeaderHeight [protected]

Definition at line 720 of file GridCtrl.h.

int CGridCtrl::m_nHScrollMax [protected]

Definition at line 662 of file GridCtrl.h.

int CGridCtrl::m_nLeftMargin [protected]

Definition at line 720 of file GridCtrl.h.

int CGridCtrl::m_nNumPages [protected]

Definition at line 706 of file GridCtrl.h.

int CGridCtrl::m_nPageHeight [protected]

Definition at line 699 of file GridCtrl.h.

Definition at line 707 of file GridCtrl.h.

int CGridCtrl::m_nPageWidth [protected]

Definition at line 703 of file GridCtrl.h.

int CGridCtrl::m_nPrintColumn [protected]

Definition at line 704 of file GridCtrl.h.

Definition at line 682 of file GridCtrl.h.

int CGridCtrl::m_nRightMargin [protected]

Definition at line 720 of file GridCtrl.h.

int CGridCtrl::m_nRows [protected]

Definition at line 660 of file GridCtrl.h.

Definition at line 684 of file GridCtrl.h.

int CGridCtrl::m_nSortColumn [protected]

Definition at line 711 of file GridCtrl.h.

int CGridCtrl::m_nTimerID [protected]

Definition at line 680 of file GridCtrl.h.

int CGridCtrl::m_nTimerInterval [protected]

Definition at line 681 of file GridCtrl.h.

int CGridCtrl::m_nTopMargin [protected]

Definition at line 720 of file GridCtrl.h.

int CGridCtrl::m_nVScrollMax [protected]

Definition at line 662 of file GridCtrl.h.

CSize CGridCtrl::m_PaperSize [protected]

Definition at line 700 of file GridCtrl.h.

Definition at line 634 of file GridCtrl.h.

PFNLVCOMPARE CGridCtrl::m_pfnCompare [protected]

Definition at line 712 of file GridCtrl.h.

CImageList* CGridCtrl::m_pImageList [protected]

Definition at line 669 of file GridCtrl.h.

CMap<DWORD,DWORD, CCellID, CCellID&> CGridCtrl::m_PrevSelectedCellMap [protected]

Definition at line 685 of file GridCtrl.h.

CFont CGridCtrl::m_PrinterFont [protected]

Definition at line 668 of file GridCtrl.h.

CRuntimeClass* CGridCtrl::m_pRtcDefault [protected]

Definition at line 665 of file GridCtrl.h.

CTypedPtrArray<CObArray, GRID_ROW*> CGridCtrl::m_RowData [protected]

Definition at line 672 of file GridCtrl.h.

CMap<DWORD,DWORD, CCellID, CCellID&> CGridCtrl::m_SelectedCellMap [protected]

Definition at line 685 of file GridCtrl.h.

Definition at line 678 of file GridCtrl.h.

Definition at line 688 of file GridCtrl.h.


The documentation for this class was generated from the following files:
Generated on Thu May 30 15:49:03 2013 for GME by  doxygen 1.6.3