Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTabClientWnd Attach / Detach Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabClientWnd Attach / Detach Problem

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


Joined: 01 June 2006
Location: Portugal
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote hipopotamo Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabClientWnd Attach / Detach Problem
    Posted: 11 July 2006 at 3:29pm
Hi,
 
I would like to let the user to decide if he wants groups or not, meaning that it must be switched at runtime.
 
But there are some strange refresh / style problems that happens to the MDI windows when I switch from one way to the other and I can no longer put it back to work again.
 
For example when group is disabled and then enabled the MDI windows appears with the system caption and menu on, which is only desirable if group mode is off.
 
 Since "detach" is a public method I assume that it is possible to obtain this two modes in runtime.
 
André
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 12 July 2006 at 12:03pm
Hello,
 
yes, unfortnuatelly Detach can work only when grouping mode disabled.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
hipopotamo View Drop Down
Groupie
Groupie


Joined: 01 June 2006
Location: Portugal
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote hipopotamo Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2006 at 12:33pm
Ok,
 
 
There is no way to enable and disable groups at runtime ?
 
I will try to investigate it my self, but I want to be sure its possible to do it.
 
Is there a specific reason, I mean  API limitation that I'm not aware of, or you just did not have implemented that yet  ? Tongue
 
Thankx
 
 
Back to Top
calvi View Drop Down
Groupie
Groupie


Joined: 20 March 2004
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote calvi Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2006 at 11:10am
The problem seems to be more fundamental than not being able to enable/disable groups.  After they have been displayed with Attach(this, TRUE), Detach() does not repaint the part of the MDI window used by the tabs, and it is not made available to the MDI children.   
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 14 July 2006 at 12:48pm
Hello, If you use Attach with TRUE, TabWorkspace automatically remove Borders and captions from child frame... So you can loop child frames and restore the after Detach
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.