Point of ListView. what row (item) and column is?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

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

  1. #1
    Join Date
    Nov 2007
    Posts
    57

    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 online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,467

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

    CListCtrl::HitTest
    CListCtrl::SubItemHitTest
    Victor Nijegorodov

  3. #3
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,467

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center