CGridCtrl显示子控件 及事件
m_Grid.SetCellType(row, 1, RUNTIME_CLASS(CGridCell)); m_Grid.SetItemText(row, 1, _T("1")); m_Grid.SetItemState(row, 1, m_Grid.GetItemState(row, 1) & ~GVIS_READONLY); m_Grid.Invalidate(); m_Grid.SetCellType(row, 1, RUNTIME_CLASS(CGridCellCheck));
CGridCellCheck *pCell = (CGridCellCheck*)pGrid->GetCell(1, 1);//获取数据类型