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. LPNMITEMACTIVATE is always giving iItem as -1

LPNMITEMACTIVATE is always giving iItem as -1

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 3 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.
  • Y Offline
    Y Offline
    yaminisridaran
    wrote on last edited by
    #1

    I am trying to inplace an edit box in a list control .Whenever I double click the item on the list control I am getting iItem of LPNMITEMACTIVATE as -1. Can any one suggest me regardig this S.Yamini

    R 1 Reply Last reply
    0
    • Y yaminisridaran

      I am trying to inplace an edit box in a list control .Whenever I double click the item on the list control I am getting iItem of LPNMITEMACTIVATE as -1. Can any one suggest me regardig this S.Yamini

      R Offline
      R Offline
      Roger Broomfield
      wrote on last edited by
      #2

      From MSDN: To obtain the items being activated, the receiving application should use the LVM_GETSELECTEDCOUNT message to receive the number of items that are selected and then send the LVM_GETNEXTITEM message with LVNI_SELECTED until all of the items have been retrieved

      Y 1 Reply Last reply
      0
      • R Roger Broomfield

        From MSDN: To obtain the items being activated, the receiving application should use the LVM_GETSELECTEDCOUNT message to receive the number of items that are selected and then send the LVM_GETNEXTITEM message with LVNI_SELECTED until all of the items have been retrieved

        Y Offline
        Y Offline
        yaminisridaran
        wrote on last edited by
        #3

        Thanks It works S.Yamini

        U 1 Reply Last reply
        0
        • Y yaminisridaran

          Thanks It works S.Yamini

          U Offline
          U Offline
          User 11455714
          wrote on last edited by
          #4

          "To obtain the items being activated, the receiving application should use the LVM_GETSELECTEDCOUNT message to receive the number of items that are selected and then send the LVM_GETNEXTITEM message with LVNI_SELECTED until all of the items have been retrieved " How did you use LVM_GETSELECTEDCOUNT, LVM_GETNEXTITEM, and LVNI_SELECTED? Can you give an sample code to solve the problem mentioned?

          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