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

    CListCtrl and LVN_ITEMACTIVATE

    Does anyone know how to make use of the LVN_ITEMACTIVATE notification?

    I've tried several ways: The notification is neither sent to the OnChildNotify() message
    handler nor to an explicitely defined message handler like this
    ON_NOTIFY(LVN_ITEMACTIVATE, IDC_LISTCTRL, OnItemActivateListCtrl).

    Currently I'm catching NM_CLICK and NM_RCLICK notifications. This works ok for
    mouse clicks; however I can't handle keyboard inputs since LVN_KEYDOWN messages
    are sent to me BEFORE the item changes.

    Maybe you have another idea how to catch a change of the currently selected list control item.

    I'm a little confused because the LVN_ITEMACTIVATE message is written in the documentation
    but seems not to be sent. A little strange, I think...

    Thanx for help,
    Torsten


  2. #2
    Join Date
    Dec 2001
    Posts
    4

    Re: CListCtrl and LVN_ITEMACTIVATE

    Also interested in the answer to this post (even 13 yrs later!). Bump!

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: CListCtrl and LVN_ITEMACTIVATE

    Try LVN_ITEMCHANGED or LVN_ITEMCHANGING instead.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: CListCtrl and LVN_ITEMACTIVATE

    Quote Originally Posted by David Carr View Post
    Also interested in the answer to this post (even 13 yrs later!). Bump!
    And why do you need to handle this notification?

    BTW, AFAIK this notification is sent only if LVS_EX_ONECLICKACTIVATE style was set.
    Victor Nijegorodov

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