
LButton detection inside a ListCtrl
I've come across this just recently, messages are sent via the WM_NOTIFY
message, e.g. TVN_SELCHANGE, NM_CLICK, NM_DBLCLK, etc.
Best regards,
Mark.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Get the smart HTML editor and validator,
SmartSite, from http://www.mjsoft.co.uk
mark at mjsoft.co.uk
Quote:
> I have a DialogBar that contains a Dialog resource that contains a
ListCtrl.
> I want the program to recognize when the mouse left-clicks in the
ListCtrl,
> but I can't seem to get it to work. I have handled the WM_LBUTTONDOWN
> message for the DialogBar and am trying to do the same for the ListCtrl.
I
> couldn't figure out why it wasn't registering so I wrote a function to
> handle the WM_LBUTTONDOWN message for the Dialog resource and then set up
> breakpoints in all three OnLButtonDown functions. When I clicked down in
> the ListCtrl, none of the functions recognized it! Am I doing something
> wrong or is there another way to do this?
> Thanks for any help
> Michael