Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts
I am developing a project in MFC where am facing some problem and i need help. Hope am at the right place to ask the question
I am using the following code to get text under mouse from listview control

int nIndex::SendMessage (hwndLstBox,LVM_GETHOTITEM,0,0);

where hwndLstBox is the handle of that listview control

This line should return index of current item which is under mouse or which is highlighted under mouse, but it is not returning index as i aspected.
It is returning 0 always!!!
Kindly let me know what to do.
Thanks
Posted
Comments
KarstenK 3-May-12 8:05am    
this should work. Is it the right handle? Check with Spy++
R. S. Verma 24-May-12 9:10am    
Thanks but I crossed check but its not working. so m still looking for any comments..
Regards..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900