Hey, im having some troubles with the search for list view controls. No matter what i use for text the search always comes back with some really wack number, like 42345151 or something. The code is below
Code:
static LVFINDINFO searchInfo;
static int searchResult = 0;
switch(Message)
{
case WM_INITDIALOG:
searchInfo.flags = LVFI_STRING;
searchInfo.psz = "something";
InitListViewColumns(GetDlgItem(hwnd, IDC_MUSICLIST)); // This adds some stuff to the list view control
searchResult = SendMessage(GetDlgItem(hwnd, IDC_MUSICLIST), LVM_FINDITEM, -1, (LPARAM)&searchInfo);
SetDlgItemInt(hwnd, IDC_TOTAL_SONGS, searchResult, false);
break;