| | |
| | | friend class CGridCell; |
| | | friend class CGridCellBase; |
| | | |
| | | public: |
| | | CCellID GetMergeCellID(CCellID cell); |
| | | int GetMergeCellHeight(CCellID cell); |
| | | |
| | | // Construction |
| | | public: |
| | | CGridCtrl(int nRows = 0, int nCols = 0, int nFixedRows = 0, int nFixedCols = 0); |
| | |
| | | int GetColumnWidth(int nCol) const; |
| | | BOOL SetColumnWidth(int col, int width); |
| | | |
| | | BOOL GetCellOrigin(int nRow, int nCol, LPPOINT p); |
| | | BOOL GetCellOrigin(int nRow, int nCol, LPPOINT p); |
| | | BOOL GetCellOriginNoMerge(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); |
| | |
| | | // Grid cell Attributes |
| | | /////////////////////////////////////////////////////////////////////////////////// |
| | | public: |
| | | CGridCellBase* GetCell(int nRow, int nCol) const; // Get the actual cell! |
| | | CGridCellBase* GetCell(int nRow, int nCol) const; // Get the actual cell! |
| | | CGridCellBase* CGridCtrl::GetCell(CCellID cell); |
| | | |
| | | void SetModified(BOOL bModified = TRUE, int nRow = -1, int nCol = -1); |
| | | BOOL GetModified(int nRow = -1, int nCol = -1); |
| | |
| | | bool m_AllowSelectRowInFixedCol; |
| | | |
| | | public: |
| | | void MergeCells(int nStartRow, int nStartCol, int nEndRow, int nEndCol); |
| | | int GetMergeCellWidth(CCellID cell); |
| | | afx_msg void OnKillFocus(CWnd* pNewWnd); |
| | | }; |
| | | |
| | |
| | | return pRow->GetAt(m_arColOrder[nCol]); |
| | | } |
| | | |
| | | inline CGridCellBase * CGridCtrl::GetCell(CCellID cell) |
| | | { |
| | | return GetCell(cell.row, cell.col); |
| | | } |
| | | |
| | | inline BOOL CGridCtrl::SetCell(int nRow, int nCol, CGridCellBase* pCell) |
| | | { |
| | | if (GetVirtualMode()) |