![]() |
Problem with CXTResize |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() 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/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
It can be problem of DeferWindowPos that we use instead of MoveWindow. :-(
You can manually resize it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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.
Still, it optimizes the repositioning :P
Here's another post where somebody is experiencing the same problem:
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
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 |