LVM_FINDITEM
-
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?
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!
-
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!
-
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!
-
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!