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.
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.