From 0c66940a8e2cf64c9890519901f433b3668216b6 Mon Sep 17 00:00:00 2001 From: KEJ <kimeungju@diteam.co.kr> Date: 수, 26 6월 2024 15:13:18 +0900 Subject: [PATCH] Ongoing80 #4942 CF AOI Review Bin File Loading 실패 개선 1. GlassRawMessenger 동기화 2. BIN파일 FindFile 제거(RawMessenger, Review 공통) 3. Unloading 시 BIN파일 제거 --- Internal_Library/Include/CHCommonControls/GridCtrl.h | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Internal_Library/Include/CHCommonControls/GridCtrl.h b/Internal_Library/Include/CHCommonControls/GridCtrl.h index bdbac1f..5d79e17 100644 --- a/Internal_Library/Include/CHCommonControls/GridCtrl.h +++ b/Internal_Library/Include/CHCommonControls/GridCtrl.h @@ -190,6 +190,10 @@ 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); @@ -215,7 +219,8 @@ 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); @@ -359,7 +364,8 @@ // 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); @@ -817,6 +823,8 @@ bool m_AllowSelectRowInFixedCol; public: + void MergeCells(int nStartRow, int nStartCol, int nEndRow, int nEndCol); + int GetMergeCellWidth(CCellID cell); afx_msg void OnKillFocus(CWnd* pNewWnd); }; @@ -888,6 +896,11 @@ 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()) -- Gitblit v1.9.3