Print Page | Close Window

Removing items from toolbar area

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=3212
Printed Date: 14 May 2025 at 3:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Removing items from toolbar area
Posted By: Graham Perks
Subject: Removing items from toolbar area
Date Posted: 13 November 2005 at 11:17am
I have set up some toolbars and an MDI application. It's working well but
the
screen has some extra junk I would like to remove. I've not been able to
figure out how and am asking for some assistance.

(http://
www.ausperks.net/CodeJockQ.png)

As soon as an MDI child is opened (which has tab movement and close
buttons, highlighted in green) the MDI min/max/close buttons appear.
Can
they be removed?

Also, the little drop-down on each toolbar - how can they be hidden?

TIA.



Replies:
Posted By: Dmitry
Date Posted: 14 November 2005 at 8:07pm
Graham,

The menu minimize, maximize and close buttons can be removed by setting the menu style 'xtpFlagHideMDIButtons'

The toolbar expand buttons can be removed by setting 'CXTPCommandBarsOptions::bShowExpandButtonAlways' to FALSE.

don't know about the tab ones.

Regards,
Dmitry


Posted By: Graham Perks
Date Posted: 15 November 2005 at 10:05pm
Thanks Dmitry! I browsed the Help for those but couldn't find them.

The tab ones (in green) are too stay so no worries about a flag for those.



Posted By: Oleg
Date Posted: 16 November 2005 at 2:03am

 

CXTPCommandBar* pMenuBar = pCommandBars->SetMenu(_T("Menu Bar"), IDR_MAINFRAME);
pMenuBar->SetFlags(xtpFlagHideMDIButtons);

 

pCommandBars->GetCommandBarsOptions()->bShowExpandButt onAlways = FALSE;



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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