Print Page | Close Window

BUG in CXTEditListBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14398
Printed Date: 12 December 2024 at 12:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG in CXTEditListBox
Posted By: mgampi
Subject: BUG in CXTEditListBox
Date Posted: 27 May 2009 at 6:11pm
Hi;

I found a bug when the CXTEditListBox is used inside a resizable window. The integrated toolbar disappears when the control is resized:

class CMyWnd : public CWnd
{
   ...
private:
   void OnSize(...);

   CXTEditListBox myChild_;
}

....

CMyWnd::OnSize(...) {
    ...
    myChild_.MoveWindow(0,0,cx,cy);
}

If I change the call to MoveWindow to

CMyWnd::OnSize(...) {
    ...
    myChild_.MoveWindow(0,22,cx,cy-22);
}

the toolbar reappears.



-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: Oleg
Date Posted: 28 May 2009 at 5:14am
Hi,
 
So you use CXTResize functionality or manually reposition it ?


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


Posted By: mgampi
Date Posted: 28 May 2009 at 9:32am
Hi;

It's used as child of a pane!


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: Oleg
Date Posted: 29 May 2009 at 1:55am
Hi,
 
so why it bug then? top of EditList box is toolbar - another window handle that you have handle manually or call  RecalcLayout() to move this toolbar.


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


Posted By: mgampi
Date Posted: 29 May 2009 at 3:26am
Hi;

It's nowhere DOCUMENTED that I have to handle the listbox and the toolbar separately!?
For me its a compund control that should behave like this!



-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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