Link to home
Create AccountLog in
Avatar of JPM2002
JPM2002

asked on

How can I scroll a Dialog box that doesn't automatically put in the scroll (mostly vertical) to scroll a long dialog box?

Experts,

How can I scroll a Dialog box that doesn't automatically put in the scroll (mostly vertical) to scroll a long dialog box?  I have created a dialog document report which I will populate with mostly texts and graphs.  But it doesn't seem to include the vertical scroll bar.  It is too long for the screen.  I checked all the dialog properties pertaining to scroll (horizontal, vertical, none, etc.) but none seem to work.  How can I make the scroll bars functional or activate them to be functional so that I don't have to write a scroll routine.  If there is no way to activate a scroll routine, how can I write the software to accomplish this. I am using  VC++/MFC 6.0
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Ichijo
Ichijo

You might consider using the document-view architecture. Scrollbars are automatic in SDI and MDI applications.
Avatar of JPM2002

ASKER

Ichijo,
I am using an SDI but I don't like how they represented the screen data.  Anyway Zoppo answer seems like the best.  
thanks
Avatar of JPM2002

ASKER

Zoppo,

I copied the CScrollDialog software over but had to modify it to an SDI base instead of a Dialog base.
I created my own Dialog box for an SDI app and copied most of the code.
The only thing I left out was the CAboutDlg class and its associated lines of code.  Everything else
is pretty much the same.
My problem I am experiencing is that the simple Dialog box I created and tested is transparent all the time even with visiblitlity checked.
I need help!