Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - create an inactive mdi child window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

create an inactive mdi child window

 Post Reply Post Reply
Author
Message
blueseaing View Drop Down
Groupie
Groupie


Joined: 14 June 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote blueseaing Quote  Post ReplyReply Direct Link To This Post Topic: create an inactive mdi child window
    Posted: 14 June 2004 at 2:00am
     I have a proble with using the CXTPTabClientWnd, I want to get a multi tab interface but I don't need the initial active mdi child window when your OpenDocumentFile(NULL,FALSE),that's  the messsage event  0n_MDICREATE should't change the active child window and should hild below the origin mdi child window , and the only thing that  user can see the new child window  is the tabitem.      I try to change the source code,but finally, I give up, can anyone help me,thanks a lot.         &n bsp;
Back to Top
blueseaing View Drop Down
Groupie
Groupie


Joined: 14 June 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote blueseaing Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 6:52pm

What I want to do is : Firstly,  when I create a new mdi child window, it will hide below the visible child window and don't change the active status of the current acttive child window.  Secondly, When I create a new child window, it will insert after  the current active and don't show in the last.  Can anyone answer me?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2004 at 2:18am

add virtual method:

void CChildFrame::ActivateFrame(int nCmdShow)
{
 
 if (GetMDIFrame()->MDIGetActive() != NULL)
  nCmdShow = SW_SHOWNOACTIVATE;
  
 CMDIChildWnd::ActivateFrame(nCmdShow);
}

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
blueseaing View Drop Down
Groupie
Groupie


Joined: 14 June 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote blueseaing Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2004 at 8:36am
Thans a lot.  when I do this, I find I create an inactive child window in the CXTPTabClientWnd and  I get an inactive tab (mdi child window) but the inactive window showed and the corresponding tab was swithced to the focus , how do i solve the problem?

Edited by blueseaing
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.797 seconds.