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. Scrollbars in a dynamically changing dialog

Scrollbars in a dynamically changing dialog

Scheduled Pinned Locked Moved C / C++ / MFC
helplearning
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.
  • M Offline
    M Offline
    Member 534357
    wrote on last edited by
    #1

    I have a dialog as a child window to a CSizingControlBar. The dialog was created using the resource editor with 5 button controls at the top of it. At run time I dynamically add CListCtrls to it (the number of list controls will vary - depends on how many the user wants). The issue I am having is with the scroll bars when a new control is added while the scroll bar is scrolled down (not at the top position) the list controls get properly added in the right position but when I scroll back to the top of the dialog because I reset my scroll position to 0 before I add the new controls my original static controls are no longer there - They seem to disappear If anyone can tell me what I am doing wrong I would greatly appreciate it 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