Print Page | Close Window

Toolbar size

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=13035
Printed Date: 21 November 2024 at 2:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar size
Posted By: FrankC
Subject: Toolbar size
Date 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




Replies:
Posted By: Oleg
Date 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



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