Combobox与可编辑的treectrl [英] Combobox with editable treectrl

查看:93
本文介绍了Combobox与可编辑的treectrl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试用可编辑的树控件制作一个组合框,但我无法做到这一点,我不知道为什么......

我使用本文中的代码:

[ ^ ]



我只在CTreeCtrl的CreateEx函数上添加TVS_EDITLABELS。当我点击该项目时,编辑控件更改为编辑模式,但我无法写任何字符...这是一个转发丢失的消息或类似的东西?如果有人可以给出一些建议那就太好了。



谢谢!

Hi,

I am trying to make a combobox with an editable treecontrol but I am not able to do this and I don't know why...
I use the code from this article :
[^]

I only add TVS_EDITLABELS on the CreateEx function of the CTreeCtrl. When I click on the item the edit control change to "edit mode", but i am not able to write any character... Is it a message forwarding missing or something like that ? If someone can give some advices it would be so nice.

Thanks !

推荐答案

加载文章您一直在使用的页面,找到评论和讨论的最后,点击添加评论或问题并询问作者,然后他将收到通知并有机会回答您。只能正确解释一切,而不是你在提出现有问题时所展示的非信息方式。



首先,显示 你有什么尝试 到目前为止。



如果您的代码行为与您的行为不符预期,使用调试器并修复它。如果你没有这样做,请描述你想要实现的目标,预期的行为,观察到的行为,为什么你觉得这是错误的。如果您有一些例外,请描述重现的步骤,完成异常信息。评论与异常抛出/传播相关的代码中的点。发布所有相关内容。另请参阅: http://www.sscce.org



-SA
Load the article page you have been using, locate "Comments and Discusssion" at the end, click "Add a Comment or Question" and ask the author, who will then get an notification and a chance to answer you. Only explain everything properly, not in that non-informative way you demonstrated in the formulation of your present question.

First, show what have you tried so far.

If the behavior of your code does not match what you expected, use the debugger and fix it. If you failed to do so, describe what did you want to achieve, what's expected behavior, what is observed behavior, why do you feel it's wrong. If you have some exceptions, describe steps to reproduce, complete exception information. Comment the points in code related to exception throwing/propagation. Post all what's relevant. See also: http://www.sscce.org.

—SA


这篇关于Combobox与可编辑的treectrl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆