Print Page | Close Window

How to calculate Client area ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11808
Printed Date: 28 February 2025 at 10:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to calculate Client area ?
Posted By: compvis
Subject: How to calculate Client area ?
Date Posted: 13 August 2008 at 7:28am
Hello, i use Commbars (ribbon....), docking pane and status bar with MFC Dialog based app.
 
How can i calculate Client area's rectangle ?
 
thank you so much !


-------------
I love ToolkitPro, Suite Pro ! Thanks Codejock !



Replies:
Posted By: Oleg
Date Posted: 13 August 2008 at 4:09pm
Here from sample:
 
void CDialogPanesDlg::OnSize(UINT nType, int cx, int cy)
{
 CDialog::OnSize(nType, cx, cy);
 
 CRect rcClient(0, 0, cx, cy);
 RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, 0, 0, &rcClient);
 RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposQuery, &rcClient, &rcClient);
 if (m_wndView.GetSafeHwnd())
 { 
  m_wndView.MoveWindow(rcClient);
 } 
}


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net