Click to See Complete Forum and Search --> : How to trap double click messages from ListBox


April 21st, 1999, 10:21 AM
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

Paul McKenzie
April 21st, 1999, 10:58 AM
Is the list box style LBS_NOTIFY?

gangster15
August 25th, 2005, 02:18 PM
Thanx for a good "to the point" thread and reply. Solved my problem.