Print Page | Close Window

CXTPTabControl::InsertItem() question

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=3481
Printed Date: 09 November 2025 at 7:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabControl::InsertItem() question
Posted By: stephen
Subject: CXTPTabControl::InsertItem() question
Date Posted: 06 January 2006 at 3:20pm
Hi all,

To insert a CWnd object into my TabControl, I use the following code:

m_TabControl.InsertItem (nItem, strName, pObjCwnd->GetSafeHwnd(), nIcon);

That works fine only if pObjCwnd has the m_TabControl object as its parent. If not, the pObjCwnd won't show at all, and the user can only see the tab item. Why should that relationship matter? Is there a workaround, since my pObjCwnd already has another parent?

Thanks.



Replies:
Posted By: Oleg
Date Posted: 07 January 2006 at 2:01pm

Just be sure pObjCwnd is at top in z-order than m_TabControl.

Don't see problems with it...



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


Posted By: stephen
Date Posted: 10 January 2006 at 12:22pm
Thanks for the reply oleg. I have tried several ways to bring the pObjCwnd to the top, however it still doesn't show.

Can you show me a way perhaps?

thanks


Posted By: Oleg
Date Posted: 11 January 2006 at 11:20am

Use SetWindowPos to bring it to top,

attach little sample and I will fix it.



-------------
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