Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem with CXTResize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with CXTResize

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Problem with CXTResize
    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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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.
 
Still, it optimizes the repositioning :P
 
Here's another post where somebody is experiencing the same problem:
PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.