PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Simple Listview Question  (Read 209 times)

Chris Cullen

  • Guest
Simple Listview Question
« on: March 17, 2005, 08:15:49 AM »

Hi

I am being thick!

I have a listview control on a form and I want to do something when the user double clicks an item.  Now, I know this comes in the form of a WM_NOTIFY message and I've actually done this outside of FF, but, I am not really sure where to pick this event up in the FF world!

I have tried the cursom event handler for the control AND the NOTIFY handler for the form, all to no avail!  Can someone point me in the right direction? :lol:
Logged

David Martin

  • Guest
Simple Listview Question
« Reply #1 on: March 17, 2005, 08:25:50 AM »

IIRC  :)

Code: [Select]
Function FORM1_LISTVIEW1_CUSTOM ( _
                                    ControlIndex  As Long,  _  ' index in Control Array
                                    hWndForm      As Dword, _  ' handle of Form
                                    hWndControl   As Dword, _  ' handle of Control
                                    wMsg          As Long,  _  ' type of message
                                    wParam        As Dword, _  ' first message parameter
                                    lParam        As Long   _  ' second message parameter
                                    ) As Long

Select Case wMsg
Case %WM_LBUTTONDBLCLK

End Select


End Function
Logged

Chris Cullen

  • Guest
Simple Listview Question
« Reply #2 on: March 17, 2005, 11:05:37 AM »

your a star! David Martin  :D

Works like a treat!

Many thanks  :wink:
Logged