Capturing treeview checkbox state event

Capturing treeview checkbox state event

I am using DVF 6.6B to process several Treeview events. The std Treeview control allows checkboxes to be one of each tree items active states. However, I have been unable to find the corresponding treeview notification message. The TVN_SELCHANGED event is useless because this event is independent of the checkbox state event. The NM_CLICK event provides some hope, but it only tells me which treeview control the user clicked in, not which treeview item within the treeview control. I suppose I could capture mouse movements and send a TVM_HITTEST message to see if the mouse was within the state icon region, but that seems a rather roundabout and possibly inaccurate approach.

Thanks for any help!
Larry Scheier
SEI Associates

3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

I tested it with Spy++ on Explorer's Tools/Folder Options/View treeview. It looks as if it's NM_CUSTOMDRAW -> NMCUSTOMDRAW -> uItemState/CDIS_CHECKED.

I assume you know that you have to use "Cray" (Integer) pointers to dereference structures sent by WM_NOTIFY?

Jugoslav

Jugoslav www.xeffort.com

You are a wealth of information, Jugoslav. That's exactly what I needed. Thanks!

Larry Scheier
SEI Associates

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen