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
精彩评论