开发者

Why am I not getting events for a checkbox click in a treeview control?

开发者 https://www.devze.com 2023-01-09 20:39 出处:网络
In my MFC dial开发者_JS百科og, i have a tree view control with checkboxes. Clicking the checkbox does not raise the NM_CLICK nor the TVN_SELCHANGED events, which I had hoped it would do.

In my MFC dial开发者_JS百科og, i have a tree view control with checkboxes. Clicking the checkbox does not raise the NM_CLICK nor the TVN_SELCHANGED events, which I had hoped it would do.

How do I correctly determine when a checkbox is checked/unchecked in a tree view control?


Handle mouse click normally and in the handler identify the current item and then use TreeView_GetCheckState to get its checked state.


There is no notification of the click.

You'll find more information and a workaround here: http://support.microsoft.com/?scid=kb%3Ben-us%3B261289&x=19&y=11

0

精彩评论

暂无评论...
验证码 换一张
取 消