-
January 28th, 2014, 05:53 AM
#1
Vertical size/height of control bar in MDI app?
Hello,
I hope, someone can help me:
In a MDI-app with some toolbars and statusbar I created also a controlbar which can be docked to the left side.
My problem now: how do I get the exact height of the controlbar?
In CalcDynamicLayout I set the height for the docked state to the height of the mainframe. This value is too big, but it will work basically.
But how can I get the exact height of the controlbar?
Thx.
Ralf
-
January 28th, 2014, 08:02 AM
#2
Re: Vertical size/height of control bar in MDI app?
I would think GetWindowRect should do it.
-
January 28th, 2014, 08:44 AM
#3
Re: Vertical size/height of control bar in MDI app?
no, it do not.
And GetClientRect do also not work.
It returns the window size until the bottom of the screen. I do not notice a statusbar or toolbar that is placed there.
-
January 28th, 2014, 08:53 AM
#4
Re: Vertical size/height of control bar in MDI app?
Originally Posted by Ralf Schneider
no, it do not.
And GetClientRect do also not work.
It returns the window size until the bottom of the screen. I do not notice a statusbar or toolbar that is placed there.
Not sure what you mean. I thought you wanted the size of the controlbar. How are you calling it?
-
January 28th, 2014, 09:14 AM
#5
Re: Vertical size/height of control bar in MDI app?
GetWindowRect(&rect); in the Controlbar-Class.
But I do not get a rect of the visible part of the controlbar.
I do get a bigger rect of a control thats bottom is at the bottom of the screen.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|