如何选择CTreeCtrl中的节点文本进行编辑
2个回答
展开全部
TVS_FULLROWSELECT
Version 4.71. Enables full-row selection in the tree view. The entire row of the selected item is highlighted, and clicking anywhere on an item's row causes it to be selected. This style cannot be used in conjunction with the TVS_HASLINES style.
实际在代码中的改动
PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
if (!CTreeView::PreCreateWindow (cs))
return FALSE;
cs.style |= TVS_FULLROWSELECT | TVS_LINESATROOT | TVS_HASBUTTONS |
TVS_SHOWSELALWAYS;
参考资料: MSDN
Version 4.71. Enables full-row selection in the tree view. The entire row of the selected item is highlighted, and clicking anywhere on an item's row causes it to be selected. This style cannot be used in conjunction with the TVS_HASLINES style.
实际在代码中的改动
PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
if (!CTreeView::PreCreateWindow (cs))
return FALSE;
cs.style |= TVS_FULLROWSELECT | TVS_LINESATROOT | TVS_HASBUTTONS |
TVS_SHOWSELALWAYS;
参考资料: MSDN
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询