Print Page | Close Window

CXTPTabClientWnd: Close tab not working

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=22111
Printed Date: 17 June 2025 at 6:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabClientWnd: Close tab not working
Posted By: Girish
Subject: CXTPTabClientWnd: Close tab not working
Date Posted: 09 December 2013 at 1:13am
Hi ,

We are using CXTPTabClientWnd for the tab view.

We are adding the tabs in CXTPTabClientWnd and navigate between the tabs.

When we close the tab, the corresponding frame attached to that tab is closed but the tab itself is still available (no actions further can be done on that tab).

This was working fine with V9510 and the issue is coming only after upgrade to V164.

Request you to please let us know incase of any known bugs and fixes if available.

Thanks,
Girish





Replies:
Posted By: kstowell
Date Posted: 10 December 2013 at 12:58am
Hi Girish, have you looked at how we implemented this in the GUI Visual Studio sample?

-------------
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<


Posted By: Girish
Date Posted: 19 December 2013 at 3:46am
Thank you for your reply.

We fixed this issue.

We were inheriting from CXTPTabClientWnd and have over ridden some functions.
The below function had issue where in

After change :-
Used  CXTPTabClientWnd::OnIdleUpdateCmdUI(); instead of UpdateContents();

void CSSDevMDIClient::OnIdleUpdateCmdUI()
{
   // get pointer to currently active MDIChild
   CWnd* pFrame = MDIGetActive();

   if (pFrame == NULL || !SkipWindow (pFrame))
   {
       CXTPTabClientWnd::OnIdleUpdateCmdUI(); //Earlier it was UpdateContents();
   }
}

After the change the close of the tab is working fine.

We have upgraded from V9510 to V1645 and after this we were facing this issue.




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