C++ ListCtrl控件实现可编辑列表项

通常,C++中的ListCtrl控件默认不具备编辑功能。为了实现可编辑的ListCtrl,你需要创建自定义类,继承自CListCtrl并重写相关事件处理函数,例如OnLvnBeginlabeledit、OnLvnEndlabeledit等。

在这些事件处理函数中,你可以创建编辑控件(如CEdit),并将其定位在需要编辑的列表项上。当用户完成编辑后,你需要获取编辑控件中的内容并更新到ListCtrl控件对应的数据项中。

zip
PropertyListCtrl_demo.zip 预估大小:30个文件
folder
Projects 文件夹
folder
PropertyListCtrl 文件夹
file
SmartString.h 1KB
file
PropertyListCtrl.dsp 5KB
file
InPlaceComboBoxImp.cpp 11KB
file
PropertyListCtrl.h 7KB
file
PropertyItem.cpp 4KB
file
PropertyListCtrl.exe 36KB
file
PropertyListCtrlApp.cpp 2KB
folder
RES 文件夹
file
PropertyListCtrl.ico 1KB
file
PropertyListCtrl.rc2 408B
file
MyData.cpp 8KB
file
SmartString.cpp 2KB
file
PropertyListCtrl.cpp 14KB
file
MyData.h 2KB
file
PropertyListCtrlDlg.h 2KB
file
PropertyListCtrlDlg.cpp 5KB
file
StdAfx.cpp 218B
file
PropertyListCtrl.rc 6KB
file
resource.h 924B
file
PropertyListCtrlApp.h 1KB
file
InPlaceEditImp.h 2KB
file
InPlaceEditPropItemString.cpp 1KB
file
PropertyItem.h 8KB
file
InPlaceComboBoxImp.h 5KB
file
StdAfx.h 1KB
file
UserMessageID.h 639B
file
InPlaceEditPropItemString.h 2KB
file
InPlaceEditImp.cpp 2KB
file
MyList.h 946B
file
PropertyListCtrl.dsw 555B
file
ReadMe.txt 4KB
zip 文件大小:44.97KB