Rect ArrayCtrl::GetCellRect(int i, int col) { Rect r; r.top = GetLineY(i) - sb; r.bottom = r.top + GetLineCy(i); int x = 0; for(i = 0; header.GetTabIndex(i) != col; i++) x += header.GetTabWidth(i); r.left = x - header.GetScroll(); r.right = r.left + header.GetTabWidth(i) - vertgrid + (col == column.GetCount() - 1); return r; }
Report message to a moderator