CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2001
    Posts
    342

    Modify MDI app using CHtmlView child to add splitter?

    I have a large MDI app which uses CHtmlView-derived child windows.

    I'd like to change to a splitter-type child window, still using a CHtmlView for the right pane.

    How can I convert this existing app?

  2. #2
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443
    In my oppinion, "modifying" an existing application, that is, somehow hacking the source files, will result in a monumental mess. If I were you, I'd start a new project and reuse the view and document classes.

    Basically, in your current code, you have a CFrameWnd derived window hosting a CHtmlVeiw derived view. What you need is to have the frame host a CSplitterWnd window, which will host the view(s). Create a new, blank application, and have the wizard add splitters to your windows. Then, have a look at the generated code, and mimic it in your project.
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

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