Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTEditListBox erroneous behavior?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTEditListBox erroneous behavior?

 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: CXTEditListBox erroneous behavior?
    Posted: 11 June 2007 at 6:42am
Hi,
 
I believe CXTEditListBox was originally adapted from the "VC++ directories"-control found in Visual Studio. I have found a strange behavior when clicking in a non-item area. Instead of showing the "add item"-edit control, the selection is lost. This confuses users accustomed to Microsoft products.
 
In XTEditListBox.cpp (627) we find this:
SetCurSel(-1);
pOwner->SendMessage(WM_COMMAND, MAKEWPARAM(GetDlgCtrlID(), LBN_SELCHANGE), (LPARAM)m_hWnd);
 
That makes no sense. When would you want to lose the focus? It has no practical use. I think the behavior found in Visual Studio is desirable.
 
What do you think?
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: 11 June 2007 at 6:51am
Well, regarding the "edit item"-behavior in VS, I just realized that all you have to do is to add an extra item with no text :)
 
Still, this deselect "feature" feels wrong.
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.172 seconds.