Is there any way to detect if a tree view control (and specifically a TVITEM) is double clicked using Common Controls & WINAPI? I mean in my wndproc function of a form.
If so, what are the msg, wParam & lParam in that case?
Is there any way to detect if a tree view control (and specifically a TVITEM) is double clicked using Common Controls & WINAPI? I mean in my wndproc function of a form.
If so, what are the msg, wParam & lParam in that case?
Copyright © 2021 Jogjafile Inc.
A treeview control sends an
NM_DBLCLKnotification when you double-click it, withuMsg=WM_NOTIFYandlParampointing to anNMHDRstructure as per the documentation.You can then send the treeview control a
TVM_HITTESTmessage to determine the item under the cursor, something like:See the documentation for the values returned by
TVM_HITTEST.