Print Page | Close Window

CXTPTabClientWnd bug or small fix

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4322
Printed Date: 29 October 2025 at 7:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabClientWnd bug or small fix
Posted By: hipopotamo
Subject: CXTPTabClientWnd bug or small fix
Date 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é

 

 




Replies:
Posted By: Oleg
Date Posted: 01 June 2006 at 12:28pm

Hello,

Thanks. Changed for 10.2 release.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net