CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2007
    Posts
    93

    Point of ListView. what row (item) and column is?

    Hi!
    If we work with a ListView,and want implement some functions like OnLBDblClick(), we only have a CPoint, but not the column and row that this point suppose. How can i Know that, is there a nother type of functions that gave us the row and column?

    Thanks!

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

    Re: Point of ListView. what row (item) and column is?

    CListCtrl::HitTest
    CListCtrl::SubItemHitTest
    Victor Nijegorodov

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

    Re: Point of ListView. what row (item) and column is?

    BTW, what notification did you mean that is about to use OnLBDblClick() handler?
    FYI. there is NM_DBLCLK notification from a list view control that passes a pointer to NMITEMACTIVATE structure which contains item and subitem indexes as well as some other useful parameters.
    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