Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTabClientWnd bug or small fix
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabClientWnd bug or small fix

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


Joined: 01 June 2006
Location: Portugal
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote hipopotamo Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabClientWnd bug or small fix
    Posted: 01 June 2006 at 11:03am

Hi,

 I add a child to the CXTPTabClientWnd that is not a MDI window,

but in order to do that I had to change the following lines so that the control would not crash...

CXTPTabClientWnd::UpdateContents()

<..>

Now...

    pNewItem = pFoundItem = AddItem(pChildWnd);

     if ( pNewItem )
    {
    
     pFoundItem->m_hWnd = pChildWnd->GetSafeHwnd();

     pFrameWnd->SendMessage(WM_X TP_NEWTABITEM, (WPARAM)pNewItem);
     pNewItem->GetTabManager()-& gt;SetSelectedItem(pNewItem);
    }

<..>

Before ...

    pNewItem = pFoundItem = AddItem(pChildWnd);

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

     pFrameWnd->SendMessage(WM_X TP_NEWTABITEM, (WPARAM)pNewItem);
     pNewItem->GetTabManager()-& gt;SetSelectedItem(pNewItem);

 

<..>

If is there another way to do it please tell me how...


By the way, the effect I had is very nice, I put a CHtmlView to fill the background of the Tab Client Window, so my OnFillBackground is very powerfull now... ;-)

Regards

André

 

 

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2006 at 12:28pm

Hello,

Thanks. Changed for 10.2 release.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.063 seconds.