Click to See Complete Forum and Search --> : Scrolling a Dialog


bala.j
May 4th, 1999, 04:45 AM
hi everybody,

I have a dialog template that is resizable with maximize,minimize buttons on it. The horizontal scroll bar and the vertical scroll bar are also set. If I scroll on these scroll bars the dialog is not scrolled. How to implement this. Please some one help me....

With thanks and regards
Bala

smakadia
May 12th, 1999, 03:51 PM
You need to overide OnVScroll(). To do this, use ClassWizard to add the handler function to your dialog class.

smakadia
May 12th, 1999, 03:52 PM
In your OnVScroll you need to call functions like ScrollWindow(), GetScrollPos(), and any other scrolling functions found in the CWnd class.