Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTabClientWnd: Close tab not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabClientWnd: Close tab not working

 Post Reply Post Reply
Author
Message
Girish View Drop Down
Newbie
Newbie


Joined: 22 November 2013
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Girish Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabClientWnd: Close tab not working
    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


Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post 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<
Back to Top
Girish View Drop Down
Newbie
Newbie


Joined: 22 November 2013
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Girish Quote  Post ReplyReply Direct Link To This Post 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.

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.031 seconds.