Click to See Complete Forum and Search --> : Creating a View on a Dialog - HELP!


nglp
April 11th, 1999, 10:00 PM
I had earlier posted a similar question here, whereby I want to implement a view with scrollbars (like that of a SDI application) inside a dialog box. At the same time, I would also like to embed controls such as checkboxes and combo box into the view window. The suggestion then was to use CFormView whereby controls can be simply dragged from the resource toolbar to be placed on the dialog resource. This dialog resource will then form the whole of the view window.

My problem is that I want the whole view window (which is actually the dialog resource if I use CFormView as described above) to be inside a dialog box!! Reason is that I have some other controls on the dialog box too. Note that these controls, however, are not the same as that embedded inside the view window.

Is there anyone who can provide me with some help?? Thanks a million!!!

Damir Cosic
May 11th, 1999, 11:51 AM
I am writting an application in which I have pretty much the same thing as you need. I have CTabCtrl, with four tabs, one of which contains class derived from CScrollView and some controls. To make this work, I created class derived from CDialog, and put some controls in it, using resource editor. Then, to create a scroll view, I derived a class from CScrollView and made it member of the dialog class. Scroll view is created in dialogs OnCreate() using its member function Create().

Hope this helps.

Damir