![]() |
How to calculate Client area ? |
Post Reply ![]() |
Author | |
compvis ![]() Groupie ![]() ![]() Joined: 07 March 2008 Location: Vietnam Status: Offline Points: 36 |
![]() ![]() ![]() ![]() ![]() 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 !
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |