Need Help With SendMessage()
-
Hi, i need help with this code; --------------------------------------------------------------- LRESULT iresult; LVFINDINFO plvfi; plvfi.flags = LVFI_STRING; plvfi.psz = "test" iresult = SendMessage(hWnd,LVM_FINDITEM,(WPARAM)-1,(LPARAM) &plvfi); ----------------------------------------------------------------- given the code above, the program i am running would Crash and a send error report dialog would appear. Ive checked other websites and their syntax is almost the same as this one but i cant seem to make this program work. What am i doing wrong? Thanks. I'd appreciate any help from you guys :-D
-
Hi, i need help with this code; --------------------------------------------------------------- LRESULT iresult; LVFINDINFO plvfi; plvfi.flags = LVFI_STRING; plvfi.psz = "test" iresult = SendMessage(hWnd,LVM_FINDITEM,(WPARAM)-1,(LPARAM) &plvfi); ----------------------------------------------------------------- given the code above, the program i am running would Crash and a send error report dialog would appear. Ive checked other websites and their syntax is almost the same as this one but i cant seem to make this program work. What am i doing wrong? Thanks. I'd appreciate any help from you guys :-D
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/cereflvm_finditem.asp[^] maybe it is some helpful to you -- modified at 7:33 Tuesday 21st March, 2006