我将该类的一个item的控件属性设定为Edit属性,但是发现没有作用,运行后该item还是不可编辑。
请教高手,一下是我的代码。
CItemInfo* lp = new CItemInfo();
lp->SetImage(1);
//add item text
lp->SetItemText(_T("Hello World"));
//add subitem text
lp->AddSubItemText(_T("Happy"));      // 0 zero based subitems...
//setup a combobox for the last column
lp->SetControlType(lp->CONTROLTYPE::edit,
0/*col # 3 from subitems...really col #4 in view, live with it*/
);
  CTreeItem *pRoot = InsertRootItem(lp);//previous on N.Y.P.D we call it CreateTreeCtrl(lp)

if( pRoot == NULL )
return;