PC Review


Reply
Thread Tools Rate Thread

Listview - annoying item mixup. Help needed

 
 
=?Utf-8?B?S2VubmV0aEJvaG1hbg==?=
Guest
Posts: n/a
 
      23rd May 2005
Hi,

I'm dropping labels onto existing items in a LargeIcon Listview. My problem
is that the listviewitem consuming the event is not the one underneath the
mouse cursor!! If only I could derive the listviewitem from the cursor
postion, I could solve that problem, but I don't seem to find how.
--
Thanks for your help,

Kenneth Bohman
 
Reply With Quote
 
 
 
 
=?Utf-8?B?bWZkYXRzdzE=?=
Guest
Posts: n/a
 
      24th May 2005
Use the GetItemAt method of the ListView. This method takes x and y coords as
parameters, in your application that would be the mouse coords, and returns
the ListViewItem at that location.

"KennethBohman" wrote:

> Hi,
>
> I'm dropping labels onto existing items in a LargeIcon Listview. My problem
> is that the listviewitem consuming the event is not the one underneath the
> mouse cursor!! If only I could derive the listviewitem from the cursor
> postion, I could solve that problem, but I don't seem to find how.
> --
> Thanks for your help,
>
> Kenneth Bohman

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help coloring individual listview item instead of all listview item in visual c++ tonyck Webmaster / Programming 0 7th Jul 2006 12:06 PM
Is this possible - dragging listview item to another item Annette Miller Microsoft Dot NET Framework 1 10th Oct 2005 12:07 PM
custom listview loses item color when no item is selected Brian S Microsoft C# .NET 2 8th Sep 2004 11:03 PM
Highlighting a ListView item when the ListView does not have focus Rookie Microsoft C# .NET 3 13th Jul 2004 08:58 PM
Listview Item.Selected not populating Listview.SelectedItems collection Chris Adams Microsoft Dot NET Framework Forms 0 23rd Apr 2004 02:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:19 PM.