Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - hint request
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

hint request

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


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Topic: hint request
    Posted: 25 November 2009 at 12:23pm
Hi,
 
I have a CXTPDialogBar, and I'd like it to have a CXTPControlTab as its child.
 
I've tried to create a dialog that contains a CXTPControlTab as a static control (like in the TabbedToolbar sample).
Then I insert as items of this controltabs 2 CTreeCtrls, that are members of my dialog.
 
Is this an acceptable solution or is there a better way?
Anyway, how can I resize the CXTPControlBar so that it fits is dialog parent?
 
Thanks a lot
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: 26 November 2009 at 1:32am
CXTPControlTab  is CXTPTabControl ?
What CXTPControlBar then ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
feffe View Drop Down
Groupie
Groupie


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Posted: 26 November 2009 at 2:55am
Sorry, a bit tired
 
I always mean CXTPTabControl.
Is this a good choice?
I have problems when I try to resize, because if the tabs are at the bottom they disappear.
 
I resolved in this manner:

GetParent()->GetClientRect(&r);

r.bottom-=tab.height();

m_wndTabControl.SetWindowPos(NULL, r.left, r.top, r.Width(), r.Height(), SWP_NOZORDER|SWP_NOACTIVATE);
 
But... Another question. Can I put the TITLE BAR on the LEFT of the window, and not on the top??? 
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: 27 November 2009 at 1:56am
Hi,
 
No, Sorry DialogBar doesn't support it - but you can try replace it to DockingPanes - they have such option (see samples)
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.031 seconds.