Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Windows Messages

Windows Messages

Scheduled Pinned Locked Moved C#
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob Groves
    wrote on last edited by
    #1

    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.

    J 1 Reply Last reply
    0
    • B Bob Groves

      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.

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups