CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    7

    How can I get the WM_LBUTTONUP message in the CListCtrl in a Dialog?

    I have a list control in a dialog,and I need to get the selected items on mouse left button lifted.But I cannot get the message in the list control? why ? What can I do to make it ?

    thanks


    ----------------------
    Learn more,Run faster

  2. #2
    Guest

    Re: How can I get the WM_LBUTTONUP message in the CListCtrl in a Dialog?

    Hello,

    You don't need to catch the left button down in order to get the selected item.

    Try this:

    In MFC Class Wizard, select the your list control and catch the NM_CLICK.
    When the user selects an item in the list control it will call this function.


    HTH


    David


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