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设为只读的