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);//获取数据类型

 

posted @ 2015-10-23 22:19  QQ76211822  阅读(1303)  评论(0编辑  收藏  举报