![]() |
CXTPTabControl::InsertItem() question |
Post Reply
|
| Author | |
stephen
Newbie
Joined: 06 December 2005 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPTabControl::InsertItem() questionPosted: 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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
stephen
Newbie
Joined: 06 December 2005 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |