Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing Dialog And Scrollbar

Status
Not open for further replies.

forlorn

Programmer
Dec 12, 2001
28
0
0
TR
Hi,

I have splitted main window and on the left frame, i have a child dialog.

There are 2 things i wanna do:
1) To size the dialog according to the screen resolution. For example if the user's screen is set to 1024x800, i want to set dialog's height to 800 on startup.

2) Since the height of the dialog i created in resource editor is too long to view in 800x640 screen, i want the dialog to be scrollable.

I tried to derive the view class on which i place the dialog from CScrollView but it didn't work.

So what should i do to accomplish these two tasks?
Any sample code would be highly appreciated.

Thanks in advance.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top