Windows Messages
-
I am deriving a new control from ListBox in which I wish to intercept certain windows messages. From what I can see, I need to override WndProc(ref m message) and then examine m.Msg. The trouble is, constants for Windows Messages such as WM_VSCROLL, do not seem to be defined anywhere. Am I working along the right lines? Rob.
-
I am deriving a new control from ListBox in which I wish to intercept certain windows messages. From what I can see, I need to override WndProc(ref m message) and then examine m.Msg. The trouble is, constants for Windows Messages such as WM_VSCROLL, do not seem to be defined anywhere. Am I working along the right lines? Rob.
Unfortunately the Windows messages aren't defined anywhere in .NET; you'll have to pull the values out from the appropriate header file from the Platform SDK. HTH, James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971