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. LVM_FINDITEM

LVM_FINDITEM

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 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.
  • D Offline
    D Offline
    Dody_DK
    wrote on last edited by
    #1

    I am having problem to find and select an item in a ListView ::SendMessage(hWnd, LVM_FINDITEM, -1, (LPARAM)"item to find"); am I doing something wrong?

    P 1 Reply Last reply
    0
    • D Dody_DK

      I am having problem to find and select an item in a ListView ::SendMessage(hWnd, LVM_FINDITEM, -1, (LPARAM)"item to find"); am I doing something wrong?

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      The LPARAM has to be the address of a LVFINDINFO structure, not a text string.


      "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

      D 1 Reply Last reply
      0
      • P PJ Arends

        The LPARAM has to be the address of a LVFINDINFO structure, not a text string.


        "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

        D Offline
        D Offline
        Dody_DK
        wrote on last edited by
        #3

        any code that explain how?

        P 1 Reply Last reply
        0
        • D Dody_DK

          any code that explain how?

          P Offline
          P Offline
          PJ Arends
          wrote on last edited by
          #4

          LVFINDINFO FindInfo = {0};
          FindInfo.flags = LVFI_STRING;
          FindInfo.psz = "item to find";
          Index = ::SendMessage(hWnd, LVM_FINDITEM, -1, &FindInfo);


          "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

          D 1 Reply Last reply
          0
          • P PJ Arends

            LVFINDINFO FindInfo = {0};
            FindInfo.flags = LVFI_STRING;
            FindInfo.psz = "item to find";
            Index = ::SendMessage(hWnd, LVM_FINDITEM, -1, &FindInfo);


            "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

            D Offline
            D Offline
            Dody_DK
            wrote on last edited by
            #5

            i will try and let you know, thanks alot

            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