how to differentiate a single click from a double click in CTreeviewCtrl



Hi,

In CTreeviewCtrl, I want to catch both the double click and the single click
events, but also need to differentiate them. For the double click event, a
handle is written against WM_LBUTTONDBLCLK. But against what message should
I write for single click event? I tried WM_LBUTTONDOWN. But WM_LBUTTONDOWN
will be fired too if I double click an item. Basically, I want to
differentiate single and double click events. Is there a way? Thanks for
any help.

JD


.


Loading