Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Removing items from toolbar area
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Removing items from toolbar area

 Post Reply Post Reply
Author
Message
Graham Perks View Drop Down
Newbie
Newbie
Avatar

Joined: 14 September 2005
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Graham Perks Quote  Post ReplyReply Direct Link To This Post Topic: Removing items from toolbar area
    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.
Back to Top
Dmitry View Drop Down
Groupie
Groupie


Joined: 28 November 2004
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmitry Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Graham Perks View Drop Down
Newbie
Newbie
Avatar

Joined: 14 September 2005
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Graham Perks Quote  Post ReplyReply Direct Link To This Post 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.

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: 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
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.016 seconds.