Real client area size? |
Post Reply |
Author | |
ATRML
Newbie Joined: 23 January 2014 Location: Boise, ID Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 24 January 2014 at 6:04pm |
I'm using a ribbon as well as the docking pane manager to create my UI.
My problem is that I want to dynamically compute the client area of my frame window that is NOT occupied by the ribbon or any docking pane windows. However, calling GetClientRect() or using CXTPClientRect always gives me the full client area of the window (0, 0, width, height), which some of you know is the /entire/ window due to the way the ribbon is rendered. I will do some research into CXTPDockingPaneManager and CXTPCommandBars to see if there are facilities there that do what I want, but I was hoping someone here could point me in the right direction before I spend time doing that work. I am a little confused why CXTPFrameWnd (or its base classes) don't override GetClientRect() to emulate the rectangle left over after XTP has rendered its UI elements.
|
|
Willowmaster
Senior Member Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
Post Options
Thanks(0)
|
Maybe first call a RecalcLayout or RedrawPanes before calling .GetClientRect? Documentation states that GetClientRect should be the thing you want. You could use the .GetLayout and iterate all the panes and their clientrects to determine the free space, but that's quite a hassle.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.3.1
Platform: Windows XP (32bit) - SP 3 (on VMWare) Language: Visual Basic 6.0 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |