![]() |
Create New Tab Without Activating It |
Post Reply
|
| Author | |
chimera
Newbie
Joined: 18 July 2006 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Create New Tab Without Activating ItPosted: 18 July 2006 at 4:32pm |
|
I'm using CXTPTabClientWnd in a CXTPMDIFrameWnd derived class.
I would like to create a new tab, without activing it as the active view. Similar to FireFox (when you right click a link and select "Open Link in New Tab").
Right now I do this:
However that doesn't work, it just opens a new tab and sets it active as the current view. I just want to open it and NOT set it active as current view.
Any ideas for how I can do this?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 July 2006 at 4:46pm |
|
Hi,
Here sample
void CChildFrame::ActivateFrame(int nCmdShow)
{ if (!m_bActivate) { nCmdShow = SW_SHOWNOACTIVATE; m_bActivate = TRUE; } CMDIChildWnd::ActivateFrame(nCmdShow); } |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
chimera
Newbie
Joined: 18 July 2006 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 July 2006 at 5:15pm |
|
Very cool! Thank you!
|
|
![]() |
|
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 |