Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPMenuBar/CXTPToolBar cy-size ???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPMenuBar/CXTPToolBar cy-size ???

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


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Topic: CXTPMenuBar/CXTPToolBar cy-size ???
    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

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: 25 March 2005 at 2:14am

you can simply call

CRect rc

pMenuBar->GetWindowRect(&rc);

cy = rc.Height();

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.188 seconds.