Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - UpdateContents need to be Virtual
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

UpdateContents need to be Virtual

 Post Reply Post Reply
Author
Message
andre View Drop Down
Groupie
Groupie


Joined: 09 March 2005
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote andre Quote  Post ReplyReply Direct Link To This Post Topic: UpdateContents need to be Virtual
    Posted: 19 May 2005 at 9:38am

Hi,

I need a html view as a background of my app, since i'm using CXTPCTabClient, html view needs to be a child of this client, but the problem is that CXTPTabClient assumes that all child windows ( visible ) are workspace windows( tabbed )

 This is not what I want, I want a HTML view to be someting like the FillBackground feature.

To do it, I had to change UpdateContents function and compile the Lib again.

void CXTPTabClientWnd::UpdateContents()

<...>

if((pChildWnd->GetStyle()&WS_VISIBLE) == WS_VISIBLE)
   {
    // add item
    pNewItem = pFoundItem = AddItem(pChildWnd);

    if ( pFoundItem ) {

     pFoundItem->m_hWnd = pChildWnd->GetSafeHwnd();

     pFrameWnd->SendMessage(WM_X TP_NEWTABITEM, (WPARAM)pNewItem);
    }

 }

<...>

}

But may be there is another way to do this.

Thank You.

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.