Click to See Complete Forum and Search --> : Frame View in Dialog - Anyone??


nglp
April 6th, 1999, 04:03 AM
Does anyone have any idea as to how to implement a frame view window in a dialog box?

April 6th, 1999, 10:25 AM
I don't understand what a frameview in a dialog box it. If you send me a picture I may be able to help.

nglp
April 6th, 1999, 10:20 PM
Err.. I don't really understand document-view as yet but I am currently reading up on this topic. What I
mean is that I want to implement a view window like that in a SDI application, but it must be in a dialog box.

Reason for wanting to do that is becos scrolling can be implemented in a view. And at the same time, controls such as checkboxes and combo box can be embedded in it.

Hope you understand what I'm trying to say. :)

Walter I An
April 7th, 1999, 02:10 AM
I am sure that FormView is ur answer
so keep reading about FormView.
And it does scroll and can contain
other controls and uses dialog resource
as a view.

Good luck. :)
Walter An

April 7th, 1999, 08:45 PM
Has some problems with my password, so got to post using Anonymous.

Thanks for the input Walter. I've read up a bit on CFormView, it indeed uses a dialog resource template to create the form.
But I have a question here. Normally, a dialog is called using the "DoModal" command. How then can I call out the form in
a similar way? I do not want the application to show the form upon startup, but only upon clicking on a menu item.

Thanks alot.

nglp :)

JohnCz
May 20th, 1999, 11:23 PM
Of course is possible to embed any window’s object in any other window. If you really want CView derived class you can have it. Drop me e-mail and I will send you sample code I wrote.
Anyway, it seems to me, that you are trying to get dialog-based application to work. Instead of view try to create dialog based app with class wizard, and later add CEdit control. You can derive your own class based on CEdit and have as much control over this object as over anything else in your app. If you need some more help, or I have misunderstood you, post another question with more details.


John Cz

June 2nd, 1999, 05:53 AM
I think you could omit the use of CView derived classes by just using the
scrolling functions provided (ScrollDC, ScrollWindowEx etc.) Eg. using ScrollWindowEx and setting the SW_CHILDREN flag on will cause all the children
to be scrolled as well.

<AnoN>