|
-
Apr 27th, 2005, 06:35 AM
#1
Thread Starter
Member
What is the WndProc-message for a listviewitem getting selected??
Hi!
I'm really going nuts on this:
How do I prevent a listview from selecting an item after user click AT ALL.
I mean, I know that it is possoble to override the Sub OnSelectedIndexChanged, make something like Me.SelectedItems.Clear() and be done with it.
BUT. If I want to change the background color of the selected item, then I need to de-select the Item first in the Sub OnSelectedIndexChanged and then set the backgroundcolor of that item. Because if I don't de-select the item then the color stays the default selection-color.
And this causes an item first being selected, then being de-selected at once and thus the listviewitems flicker which I find utterly annoying.
So I need to cancel the message that makes the listview consider an item as selected and handle this whole selection stuff all by myself.
But which one is it??
I tried something like LVN_ITEMCHANGED or LVN_ITEMACTIVATE but none worked...
Can anyone help me?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|