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

    Cplitter & Views

    Guys please help!

    I've created my first Doc/View project using Visual Studio Default project.
    I've added a splitter and I'm loading an HTML view to the right side and it works as expected.

    <CODE>
    CRect rectClient;
    GetClientRect(rectClient);

    m_wndSplitter.CreateStatic(this, 1, 2);
    m_wndSplitter.CreateView(0, 0, pContext->m_pNewViewClass, CSize(0, rectClient.Height() / 2), pContext);
    m_wndSplitterCreateView(0, 1, RUNTIME_CLASS(CHtmlView), CSize(0, rectClient.Height() / 2), pContext);
    </CODE>

    I'm struggling to create a new view that will use CHtmlView but will add a button on the top of the control

    --------------------
    | Button <- I want to add this button as part of the view...
    | Normal HtmlView


    Can anyone please help!!!

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Cplitter & Views

    Quote Originally Posted by Salvadoravi View Post
    <CODE>
    ...
    </CODE>
    Code tags in CG use [], not <>

    Quote Originally Posted by Salvadoravi View Post
    --------------------
    | Button <- I want to add this button as part of the view...
    | Normal HtmlView
    Why don't you want to add this button in the HtmlView itself?
    Victor Nijegorodov

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