Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - BUG in CXTEditListBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG in CXTEditListBox

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

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUG in CXTEditListBox
    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
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: 28 May 2009 at 5:14am
Hi,
 
So you use CXTResize functionality or manually reposition it ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
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: 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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
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.219 seconds.