
Block icons in a listview control
released on Wed, 11 Sep 2002 17:13:58 GMT bearing the
following fruit:
Quote:
>Hi all,
>in my application I have two use mode. In one mode user can't move icon in
>a listview control but he can only select one of it, click (or double click)
>and so on. But he hasn't be able to move icon around the control.
>Is it possible to block icons in a listview control?
>Thanks in advance.
something roughly like this in the mousedown event should do
it
LockWindowUpdate ListView1.Hwnd
Set lv = ListView1.HitTest(x, y)
ListView1.Enabled = False
ListView1.Enabled = True
If lv Is Nothing Then
Else
lv.Selected = True
End If
ListView1.SetFocus
LockWindowUpdate 0
J
--
In a Restaurant window: "Don't stand there and be hungry, come in and get fed up."
(Bill Stebbins)