I was wondering if there's an accepted strategy for creating a scrollable dialog in the Windows API, perhaps using the WTL scrollable classes (CScrollImpl, CScrollWindowImpl, CScrollContainer, etc.).
One idea I had was to place an inner child dialog (which contains the actual controls) within an outer parent window, and then simply move the child dialog window in response to the scroll bar messages. That way, at least in my mind, you wouldn't have to move each individual control when scrolling occurs. You'd just move the inner window, which would in turn move the controls.
But maybe I'm thinking about this all wrong. Has anybody dealt with this problem before? Thanks for any help.
This is the modified version, which works in dialogs:
You can then use it as below (a modeless dialog with enabled vertical and horizontal scrollbars)