-
October 26th, 2007, 07:38 AM
#1
ClientRect of SDI
Hi all,
I am working on a SDI application, there I am using a splitter to split the frame into two panes. Now, I want to adjust the pane size, for that I use GetClientRect within the Frame, the only problem is that that Rect returned also includes the size for the Toolbar above. Is there a way, that I can get Rect - the toolbar height??? I'd prefer not do something like RcFrame.Height()-RcToolBarHeight()
Regards,
Usman.
-
October 26th, 2007, 08:58 AM
#2
Re: ClientRect of SDI
that Rect returned also includes the size for the Toolbar above
What toolbar are you refering to? Can you show a bitmap of the panes?
Gort...Klaatu, Barada Nikto!
-
October 31st, 2007, 03:46 PM
#3
Re: ClientRect of SDI
It is unclear to me why are you using GetClientRect to obtain client area of the main frame?
It will always return client rectangle without taking under consideration any windows that are inside of the client area.
I am assuming that you are using static splitter.
You should rather ask about splitter window size. Frame window positions splitter as the last, after laying out all other windows.
You should call frame’s member RecalcLayout and than retrieve splitter’s rectangle.
See this article for explanation how frame window positions and sizes all child windows.
There are only 10 types of people in the world:
Those who understand binary and those who do not.
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
|