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 / C++ / MFC
  4. Adding WM_VSCROLL to message handler for slider control in VS 2005 with C++ and MFC

Adding WM_VSCROLL to message handler for slider control in VS 2005 with C++ and MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiohelp
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.
  • G Offline
    G Offline
    GrizzlyDoug
    wrote on last edited by
    #1

    In trying to add WM_VSCROLL to message handler for slider control in VS 2005 with C++ and MFC, I ran into problem that the slider only supports 4 NMXXXXXXXXX messages or events. What wizards and tabs/menu selections do I choose to get to a place where I can add the WM_VSCROLL message handler to handle messages for the slider so I can get access to it's current value. This is probably an easy thing to do, but it seems like it has gotten more difficult since access to all the messages has been limited, leaving only a very small subset.

    GrizMan

    M 1 Reply Last reply
    0
    • G GrizzlyDoug

      In trying to add WM_VSCROLL to message handler for slider control in VS 2005 with C++ and MFC, I ran into problem that the slider only supports 4 NMXXXXXXXXX messages or events. What wizards and tabs/menu selections do I choose to get to a place where I can add the WM_VSCROLL message handler to handle messages for the slider so I can get access to it's current value. This is probably an easy thing to do, but it seems like it has gotten more difficult since access to all the messages has been limited, leaving only a very small subset.

      GrizMan

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      The messages are sent to the trackbar control's parent by default. You could right click the parent window class in the class view window, choose properties, select the messages tab in the properties window, and add the WM_VSCROLL handler there. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      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