StoneCodeMonkey
Well-known member
- Joined
- Apr 17, 2009
- Messages
- 56
- Programming Experience
- 5-10
Any idea where Windows Message constants can be found in the framework?
Example: msg=0x2 (WM_DESTROY) hwnd=0x24038c wparam=0x0 lparam=0x0 result=0x0
I captured that with ...
intList is just a List(Of Integer), keeps me from logging the same message type over and over.
Not all of the messages return a (xxxx) constant from the ToString method, but most do. Just curious. Also, I'm using VB2010 Express, Framework 4.0
Thanks,
Example: msg=0x2 (WM_DESTROY) hwnd=0x24038c wparam=0x0 lparam=0x0 result=0x0
I captured that with ...
VB.NET:
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
MyBase.WndProc(m)
If Not intList.Contains(m.Msg) Then
intList.Add(m.Msg)
Debug.Print(m.ToString)
End If
End Sub
intList is just a List(Of Integer), keeps me from logging the same message type over and over.
Not all of the messages return a (xxxx) constant from the ToString method, but most do. Just curious. Also, I'm using VB2010 Express, Framework 4.0
Thanks,
Last edited: