CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: How to trap double click messages from ListBox

    Is the list box style LBS_NOTIFY?



  3. #3
    Join Date
    May 2005
    Posts
    5

    Re: How to trap double click messages from ListBox

    Thanx for a good "to the point" thread and reply. Solved my problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured