![]() |
How to use CXTPTabClientWnd correctly! |
Post Reply
|
| Author | |
xred
Groupie
Joined: 24 August 2004 Location: China Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Topic: How to use CXTPTabClientWnd correctly!Posted: 25 September 2004 at 12:53am |
|
I found some examples work very well,but my not! //////////////////////////// VERIFY(m_MTIClientWnd.Attach(this)); } Thanks in advance! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 September 2004 at 2:19pm |
|
You can create child like this: BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) if( !CMDIChildWnd::PreCreateWindow(cs) ) return TRUE; |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
xred
Groupie
Joined: 24 August 2004 Location: China Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2004 at 5:29am |
|
Hi,Oleg I have to say that it doesn't work! However some examples such as GUI_Visualstudio7 don't include these lines ,but it works very well! Why?
Edited by xred |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2004 at 10:59am |
|
Additional add void CChildFrame::ActivateFrame(int nCmdShow) to make it Maximized by default.
In GUI_Visualstudio7 .Attach called with bEnableGroups = TRUE VERIFY(m_MTIClientWnd.Attach(this, TRUE));
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
xred
Groupie
Joined: 24 August 2004 Location: China Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 September 2004 at 5:00am |
|
Oleg ,It still cant't work!I'm in despair,I hit my keyboard, so my keyboard's space key has been broken yet! I can't understand why GUI_VisualStudio7 didn't include any special line and It works so perfectly! //////////////////////////////////////////////////////////// ///////////// return TRUE; nCmdShow = SW_SHOWMAXIMIZED; Thank you again,Oleg! Edited by xred |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 September 2004 at 11:20am |
|
In previous post, Oleg mentioned that the VS 7 sample used this:
VERIFY(m_MTIClientWnd.Attach(this, TRUE)); I see in your code that you are do this: VERIFY(m_MTIClientWnd.Attach(this)); I tried both version in the VS 7 sample and removing "TRUE" produced results similar to the problem you are having. Hope this help ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 September 2004 at 11:59pm |
|
add cs.x = to PrecreateWindow |
|
|
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 |