How to trap double click messages from ListBox
Hi,
I am trying to catch a double click message from a listbox (IDC_LIST1).
In the handler I am checking for
switch (msg)
{
case WM_COMMAND:
if ((int)LOWORD(wParam)==IDC_LIST1)
{
if ((int)HIWORD(wParam)==LBN_DBLCLK)
{
do something
}
}
but this code is not working. If I use Spy++ I can see that the ListBox
notification is being sent, but the handler is not handling this.
Any Ideas?
Thanks
Suresh Krishnan
Re: How to trap double click messages from ListBox
Is the list box style LBS_NOTIFY?
Re: How to trap double click messages from ListBox
Thanx for a good "to the point" thread and reply. Solved my problem.