Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Real client area size?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Real client area size?

 Post Reply Post Reply
Author
Message
ATRML View Drop Down
Newbie
Newbie
Avatar

Joined: 23 January 2014
Location: Boise, ID
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote ATRML Quote  Post ReplyReply Direct Link To This Post Topic: Real client area size?
    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.
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2014 at 5:30am
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



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