Print Page | Close Window

CXTPMenuBar/CXTPToolBar cy-size ???

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1977
Printed Date: 02 October 2024 at 5:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPMenuBar/CXTPToolBar cy-size ???
Posted By: hpesata
Subject: CXTPMenuBar/CXTPToolBar cy-size ???
Date Posted: 17 March 2005 at 7:58am
Hi!

Xtreme Tookit pro 9601:

In my app I am using a horizontal menubar with xtpFlagStretched and a horizontal toolbar also with xtpFlagStretched.

how can I correctly calculate the actual cy-size of my menubar/toolbar including
any possibly wrapped items ?

I tried using CalcDockingLayout() and CalcDynamicLayout() but I am not able to get correct values using these functions.

any help with this would be greatly appreciated!

thanx in advance!

bets regards,
Hans




Replies:
Posted By: Oleg
Date Posted: 25 March 2005 at 2:14am

you can simply call

CRect rc

pMenuBar->GetWindowRect(&rc);

cy = rc.Height();



-------------
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