🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #2292

VB.NET - WndProc di una Listview

#2292
From: Netslacker
Date: Tue, 08 Jul 2003 13:11
29 lines
2140 bytes
Salve a tutti, ho trovato il seguente codice:

Inherits System.Windows.Forms.ListView
...

Private Const WM_HSCROLL As Integer = &H114
Private Const WM_VSCROLL As Integer = &H115

Protected Overrides Sub WndProc(ByRef msg As Message)
    ' Look for the WM_VSCROLL or the WM_HSCROLL messages.
    If ((msg.Msg = WM_VSCROLL) Or (msg.Msg = WM_HSCROLL)) Then
        ' Move focus to the ListView to cause ComboBox to lose focus.
        Me.Focus()
    End If

End If
    ' Pass message to default handler.
    MyBase.WndProc(msg)
End Sub

con il quale � possibile sapere quando viene fatto lo scroll orizzontare e
verticale.

Come faccio a sapere quando viene fatto il resize di una colonna ?

ma in generale esiste da qualche parte l'elenco delle costanti che �
possibile intercettare ?

grazie
Technical Details
Message-ID: <XpzOa.155797$Ny5.4435237@twister2.libero.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f94ee,86e73fddcf9fc50a,start
X-Google-Attributes: gidf94ee,public
X-Google-Thread: 109528,86e73fddcf9fc50a,start
X-Google-Attributes: gid109528,public
X-Google-Thread: 10b997,86e73fddcf9fc50a,start
X-Google-Attributes: gid10b997,public
X-Google-Thread: 10c104,86e73fddcf9fc50a,start
X-Google-Attributes: gid10c104,public
X-Google-ArrivalTime: 2003-07-08 06:11:20 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
From: "Netslacker" <netslacker@iname.com>
Newsgroups: free.it.visual-basic,it.comp.lang.visual-basic,microsoft.public.it.dotnet.vb,microsoft.public.it.dotnet.vstudio
Subject: VB.NET - WndProc di una Listview
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <XpzOa.155797$Ny5.4435237@twister2.libero.it>
Date: Tue, 08 Jul 2003 13:11:19 GMT
NNTP-Posting-Host: 151.42.76.168
X-Complaints-To: abuse@net24.it
X-Trace: twister2.libero.it 1057669879 151.42.76.168 (Tue, 08 Jul 2003 15:11:19 MET DST)
NNTP-Posting-Date: Tue, 08 Jul 2003 15:11:19 MET DST
Organization: [Infostrada]