Scrollbars in a dynamically changing dialog
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
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