tags:

views:

39

answers:

2

In my MFC dialog, 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?

A: 

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

mmonem
so i did it. Thank you
camelord
A: 

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

dwo