Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Toolbar visibility state is not maintaning
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar visibility state is not maintaning

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

Joined: 25 October 2006
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote babumohan Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar visibility state is not maintaning
    Posted: 27 October 2006 at 6:55am
When the toolbar changes its visibility state, frame does not recalculate the client area
Babs
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: 27 October 2006 at 6:58am
Hello,
 
obviously you make something wrong. Can you attach some sample that show what you do.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 27 October 2006 at 6:59am
btw. In screenshot I see that it is not our CommandBars....   What version do you have ? Is it ToolkitPro?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
babumohan View Drop Down
Newbie
Newbie
Avatar

Joined: 25 October 2006
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote babumohan Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2006 at 7:05am

BOOL bResult = m_wndToolbar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE
  | CBRS_TOP | CBRS_TOOLTIPS | CBRS_SIZE_FIXED|CBRS_FLYBY);

 CXTPToolBar::SetFlags(xtpFlagAlignTop, xtpFlagFloating | xtpFlagAlignAny|xtpFlagSmartLayout);
 CXTPPaintManager::SetTheme(xtpThemeOffice2003);

===========
where wndToolbar is an object of a clas which is inherited from CXTPToolBar.
Babs
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: 27 October 2006 at 7:42am
Hello,
 
you use wrong code. Check our samples. You have to add toolbars with
pCommandBars->Add method.
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.063 seconds.