我将该类的一个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;
请教高手,一下是我的代码。
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;
解决方案 »
- 50分,向高手请教64位系统下MFC程序的问题
- 宽字符问题
- 如何改变静态文本框上某一行的文字的颜色?
- 下了个,RationalRoseforWin2003,但是要许可文件我找不到。哪个有不要用许可文件的版呀。给个下载地址。给,200分
- 域名转向问题!
- 用CScrollView派生视 ,怎样滚动显示图片?
- 转行
- 安装钩子的程序退出前未卸载钩子,那么程序退出后,这个钩子是不是还留在系统中?还起着作用?
- VS2010 Ribbon中ComboBox控件事件消息如何添加
- 如何读出一个文件的头记录?
- 有件事想不明白,有关刷新列表控件数据的问题
- 请问在如何在在树形控件的每一个接点()后面加入一个属性控件,例如combo,radio等等。
快来了
送分