locked
How to get index of selected item in listview RRS feed

  • Question

  •  

    HI

      i am  working with wm6 and  vc++

      I want to know

       how to get the index of selected item in listview control

     

     

    Thanx

    subodh kumar

    Thursday, June 5, 2008 6:55 AM

Answers

  • You can use ListView_GetSelectionMark Macro or LVM_GETSELECTIONMARK.

    If you are using MFC than you can just call GetSelectionMark.

    Thursday, June 5, 2008 9:48 AM

All replies

  • You can use ListView_GetSelectionMark Macro or LVM_GETSELECTIONMARK.

    If you are using MFC than you can just call GetSelectionMark.

    Thursday, June 5, 2008 9:48 AM
  • Hi

       I am  not using MFC

       now it is working.

     

    thanx

    Thursday, June 5, 2008 10:17 AM