CTreeCtrl'TVN_ITEMCHANGED'没有在Windows XP环境中被解雇? [英] CTreeCtrl 'TVN_ITEMCHANGED ' not getting fired in windows xp environment?

查看:100
本文介绍了CTreeCtrl'TVN_ITEMCHANGED'没有在Windows XP环境中被解雇?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在进行树控制,我正在做一些事情。树控件由一个Root节点组成

并且该根节点由一个子节点组成,这个子节点由3个节点组成。

这个树控件位于一个属性页上,在我点击任意一个复选框之后我就是这个b $ b启用向导按钮。在TVN_ITEMCHANGED的事件处理程序中,我启用了工作表

按钮。



当我运行我的时候应用程序和检查treecontrol节点后,我无法启用

工作表按钮。我已经看到代码是绝对正常的,我正在检查节点的检查状态

并启用工作表按钮。我开始调试我的代码,首先是NM_CLICK被解雇了

然后我期待TVN_ITEMCHANGED事件被解雇但是它根本没有被解雇。 br />


我不知道为什么这个事件没有被解雇。并且en我正在使用的vironment是WindowsXP。



我在windows7,windows 8,windows vista上运行我的应用程序。它正在按预期工作,但仅在XP中

我发现了这种行为。



任何人都可以帮我解决这个问题。

Hi,

I am having a tree control where I am doing some stuff.The Tree control consists of a Root node
and that root node consists of one child node inturn this child node consists of 3 nodes.
This treecontrol is on a propertypage and in this after I click on any of the checkbox I am
enabling the wizard buttons.And in the event handler to TVN_ITEMCHANGED I enabled the sheet
buttons.

When I had run my application and after checking a node of treecontrol I am not able to enable the
sheet buttons.I had seen the code is absolutely fine where I am checking the check state of the node
and enabling the sheet buttons.I started debugging my code and first it was NM_CLICK is getting fired
and then I was expecting the TVN_ITEMCHANGED event to get fired but it is not at all getting fired.

I have no idea why this event is not getting fired.And the environment I am using is WindowsXP.

I had run my application on windows7 ,windows 8,windows vista.There it is working as expected,but in XP only
I figured out this behaviour.

Can anyone please help me to get this problem resolved.

推荐答案

请参阅 http:// msdn。 microsoft.com/en-us/library/windows/desktop/bb773526(v=vs.85).aspx [ ^ ],Windows XP不支持此功能。信息很容易找到。
See http://msdn.microsoft.com/en-us/library/windows/desktop/bb773526(v=vs.85).aspx[^], this is not supported on Windows XP. Information that is quite easy to find.


这篇关于CTreeCtrl'TVN_ITEMCHANGED'没有在Windows XP环境中被解雇?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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