CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 1999
    Posts
    18

    Frame View in Dialog - Anyone??

    Does anyone have any idea as to how to implement a frame view window in a dialog box?


  2. #2
    Guest

    Re: Frame View in Dialog - Anyone??

    I don't understand what a frameview in a dialog box it. If you send me a picture I may be able to help.


  3. #3
    Join Date
    Apr 1999
    Posts
    18

    Re: Frame View in Dialog - Anyone??


    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.


  4. #4
    Join Date
    May 1999
    Location
    Republic of Korea
    Posts
    100

    Re: Frame View in Dialog - Anyone??

    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


  5. #5
    Guest

    Re: Frame View in Dialog - Anyone??

    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


  6. #6
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Frame View in Dialog - Anyone??

    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
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  7. #7
    Guest

    Re: Frame View in Dialog - Anyone??

    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>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured