Print Page | Close Window

How to use CXTResizeDialog class

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=18144
Printed Date: 06 May 2024 at 8:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to use CXTResizeDialog class
Posted By: eousi
Subject: How to use CXTResizeDialog class
Date Posted: 30 March 2011 at 10:21pm
I create a dialog and place a tree control on it.Now I change the size of dialog,and I want the tree control to have the same size with dialog.I use SetResize method of CXTResizeDialog class,but there is a problem.I want to see the sample of this class,Thanks.My code is below:
void CDlgTypeList::OnSize(UINT nType, int cx, int cy)
{
   CDialog::OnSize(nType, cx, cy);
   CXTResizeDialog rszDlg;
   CXTResizeRect rszRc;
   CRect rc;
   GetWindowRect(rc);
   rszRc=rc;
   rszDlg.SetResize(IDC_TREE, rszRc.left, rszRc.top, rszRc.right, rszRc.bottom);
}



Replies:
Posted By: Oleg
Date Posted: 05 April 2011 at 4:22am
If you have only one control to fit whole dialog, its much easear manually resize it in OnSize event.

m_tree.MoveWindow(0, 0, cx, cy);


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


Posted By: eousi
Date Posted: 05 April 2011 at 8:58pm
Hi,
I know this method,but I only want to know how to use CXTResizeDialog class.Can you give me a sample?



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