Enable Scrolling in MDI
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have a MDI application. Views are derived from CFormView. Now I need scrollbars to scroll the main window when child frames are outside of the CMainFrame client area. I've enabled scrollbars (EnableScrollBarCtrl) and these are shown but no scroll action is taken (naturally). Then I've tried to manage the WM_VSCROLL/WM_HSCROLL events, using ScrollWindow and SetScrollInfo. But I've some problems: the content of main window seems to scroll but as soon as I release the scroll bar button the content return to its initial position. And during scrolling the client area is not properly repainted on the bottom side (when scrolling down). There's a right way to manage scrolling of the main frame window in a MDI application ? Thanks