Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to make captionless docking pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to make captionless docking pane

 Post Reply Post Reply
Author
Message
yamasaki View Drop Down
Newbie
Newbie
Avatar

Joined: 06 December 2003
Location: Japan
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote yamasaki Quote  Post ReplyReply Direct Link To This Post Topic: How to make captionless docking pane
    Posted: 06 December 2003 at 3:33am

Is it possible to make captionless docking pane?

best regards,

yamasaki

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: 09 December 2003 at 1:47am

Try this:

class CCustomTheme : public CXTPDockingPaneOfficeTheme

{

virtual void DrawCaption(CDC& dc,CXTPDockingPaneTabbedContainer* pPane, CRect rc)

{

}

virtual void AdjustClientRect(CXTPDockingPaneTabbedContainer* pPane, CRect& rect)

{

if (pPane->IsTabsVisible()) rect.bottom -= m_nTabsHeight;

}

};

...

...

...

GetDockingPaneManager()->SetCustomTheme(new CCustomTheme());

 

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2003 at 12:14pm
is this possible in VB6?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2004 at 12:38pm
Yes, this is possible in vb6. 

It is possible to either show or hide ALL docking pane title bars.  You can not hide/show them on an individual basis.

DockingPaneManager.Options.ShowCaption = False
Back to Top
bsharifi View Drop Down
Newbie
Newbie


Joined: 09 December 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote bsharifi Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 4:20pm
When I try the above code, the caption bar at the top is removed, but so are my tabs.  Now, I can't see/change the selected tabs.  Help!
Back to Top
bsharifi View Drop Down
Newbie
Newbie


Joined: 09 December 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote bsharifi Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 4:48pm

I don't have the source code since I am evaluating the tool.  Therefore, I can only guess what I need to change.  Can someone help me who can use the source?  The example code of deriving from the CXTPDockingPaneOfficeTheme successfully removes the caption bar at the top of my docking panes but also stops drawing the tabs.  Does someone have a corrected version of the above code?

Thanks!

Back to Top
mwest View Drop Down
Newbie
Newbie
Avatar

Joined: 13 June 2005
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote mwest Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2005 at 10:52am
I think this post http://forum.codejock.com/forum_posts.asp?TID=927 addresses the same problem.
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.156 seconds.