CListView GetItemData

erha
2009-09-10
2013-05-28
  • erha

    erha - 2009-09-10

    Hi David,

    I am not very sure if this has been discuss before, if yes, please ignore it.

    The GetItemData do not return the correct information.
    Instead of returning the lParam from LVITEM structure, currently it returning the result of the ListView_GetItem macro. You will always get 1 or 0 as result.

    I change the following code

    return ListView_GetItem(m_hWnd, &lvi);

    to:

    ListView_GetItem(m_hWnd, &lvi);
    return lvi.lParam;

    Note: I ignore the result of the ListView_GetItem macro.

    Thanks...

     
    • David

      David - 2009-09-10

      This has been corrected in the later versions of Win32++.  The latest version available currently from SourceForge is 6.6.

      Regards,
      David

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks