Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - Toolbar size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedToolbar size

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


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar size
    Posted: 29 December 2008 at 5:48pm
I am trying to get the current toolbar layout size (not including the hidden buttons). Which routine should I use?

Are the following calls should be correct ones? If so, what is the exact meaning of nLength, dwMode and nWidth of the required parameters?

CSize CXTPToolBar::CalcDockingLayout(int nLength, DWORD dwMode) and
CSize CXTPToolBar::CalcDockingLayout(int nLength, DWORD dwMode, int nWidth = 0);

Thanks,
Frank

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: 30 December 2008 at 12:50am
Hi,
 
Yes, it calculates size od Toolbar.
 
From our sample:
 
CSize sz = m_wndToolBar.CalcDockingLayout(cx, LM_HIDEWRAP| LM_HORZDOCK|LM_HORZ | LM_COMMIT);
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.125 seconds.