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. capturing embedded control messages

capturing embedded control messages

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohardwaretutorialquestion
1 Posts 1 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.
  • W Offline
    W Offline
    will1383
    wrote on last edited by
    #1

    Hi all, I have a simple dialog box with two list view controls on it. the controls both have a vertical scroll bar and are created via Visual Studio (not manually using CreateWindowEx). I need to syncronize the scrollbars so when a user selects one scrollbar, the other list view's scroll bar also moves (obviously moving the information within as well). From what I read in MSDN, I thought the scroll messages from a control within were propagated to the parent window (in this case a dialog box). With this information, I understood it as I could just handle the WM_VSCROLL message in the parent's windproc and figure out where the message came from and do what I got to do (using SetScrollPos and such). Only thing is, my parent window is not receving ANY messages from the two list view controls. I don't remember what I need to do so the parent windproc receives these messages so I can handle my scrolling. Any suggestions on how to get the messages? Other than adding a windproc for each control? I don't really want to do it that way and I'm looking for a better way. Any suggestions are greatly appreciated. Thank you!

    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