Print Page | Close Window

create an inactive mdi child window

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=835
Printed Date: 25 December 2024 at 9:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: create an inactive mdi child window
Posted By: blueseaing
Subject: create an inactive mdi child window
Date 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;



Replies:
Posted By: blueseaing
Date 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?



Posted By: Oleg
Date 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


Posted By: blueseaing
Date 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?



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