CBCGPGridCtrl中加入颜色选择

代码:

 //加入顏色選擇
CBCGPGridColorItem* pColorItem = new CBCGPGridColorItem (
RGB (
255, 0, 0));
ASSERT_VALID (pColorItem);
pColorItem
->EnableOtherButton (_T("Other"));
pRow
->ReplaceItem (0, pColorItem);

m_Grid.AddRow (pRow, FALSE);

不过不能把CBCGPGridCtrl设为只读的  不然颜色选择失效

posted @ 2011-08-11 15:33  银翼的魔术师  阅读(1056)  评论(0编辑  收藏  举报