Print Page | Close Window

Problem with CXTResize

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12816
Printed Date: 23 June 2025 at 11:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with CXTResize
Posted By: znakeeye
Subject: Problem with CXTResize
Date Posted: 28 November 2008 at 10:50am
XTP 12.0.1
We have made an ActiveX control in which a child dialog is being shown. If we put it inside dialog X, we can resize it using MoveWindow() without any problems. However, with SetResize() the window behaves weirdly.
 
CXTResizeDialog::OnInitDialog();
SetResize(IDC_OCX_LIST, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT);
 
When our dialog X is resized, the contents of our ActiveX control is indeed resized, but not the window itself! The rectangle keeps its original size, from the dialog template.
 
Could this be a bug in CXTResize?


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 01 December 2008 at 4:31am
Hi,
It can be problem of DeferWindowPos that we use instead of MoveWindow. :-(
You can manually resize it.


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


Posted By: znakeeye
Date Posted: 01 December 2008 at 6:45am

That's what I thought. I'm not very in to this API, but I suppose it's better for this purpose.

Looks like this API is troublesome.
http://blogs.msdn.com/oldnewthing/archive/2005/07/06/436043.aspx - http://blogs.msdn.com/oldnewthing/archive/2005/07/06/436043.aspx
 
Still, it optimizes the repositioning :P
 
Here's another post where somebody is experiencing the same problem:
http://www.google.se/search?hl=sv&q=DeferWindowPos+for+MFC+wrappered+ActiveX+control&meta - http://www.google.se/search?hl=sv&q=%22DeferWindowPos+for+MFC+wrappered+ActiveX+control%22&meta


-------------
PokerMemento - http://www.pokermemento.com/



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