Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. can anybody help me out.....

can anybody help me out.....

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    philiptabraham
    wrote on last edited by
    #1

    can anybody tell me how to fetch the value of a column in a particular row in the list control when i click anywhere on the row. i tried out this way TCHAR pszText[_MAX_PATH] LVITEM lvi={0}; lvi.mask=LVIF_Text; lvi.pszText=pszText lvi.cchTextMax=_MAX_PATH lvi.iItem=0; lvi.iItem=xc; listctrl.sendMessage(Lvm_GETITEM,(WPARAM)0,(LPARAM)(LPLVITEM)&lvi) but by using this code i am only able to fetch the first column value where as i want to fetch either the second or third column value. thanks in advance

    Steve EcholsS 1 Reply Last reply
    0
    • P philiptabraham

      can anybody tell me how to fetch the value of a column in a particular row in the list control when i click anywhere on the row. i tried out this way TCHAR pszText[_MAX_PATH] LVITEM lvi={0}; lvi.mask=LVIF_Text; lvi.pszText=pszText lvi.cchTextMax=_MAX_PATH lvi.iItem=0; lvi.iItem=xc; listctrl.sendMessage(Lvm_GETITEM,(WPARAM)0,(LPARAM)(LPLVITEM)&lvi) but by using this code i am only able to fetch the first column value where as i want to fetch either the second or third column value. thanks in advance

      Steve EcholsS Offline
      Steve EcholsS Offline
      Steve Echols
      wrote on last edited by
      #2

      Try lvi.iSubItem = column number (one based). http://msdn2.microsoft.com/en-us/library/bb774760(VS.85).aspx[^]


      - S 50 cups of coffee and you know it's on!

      • S
        50 cups of coffee and you know it's on!
        Code, follow, or get out of the way.
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups