http://bugs.winehq.org/show_bug.cgi?id=33550
Bug #: 33550 Summary: Can't select there's only one item in TreeView if canceled TVN_BEGINLABELEDIT. Product: Wine Version: 1.5.29 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 AssignedTo: wine-bugs@winehq.org ReportedBy: orzhvs@gmail.com Classification: Unclassified
Created attachment 44406 --> http://bugs.winehq.org/attachment.cgi?id=44406 WINEDEBUG=+message wine ~/.wine/drive_c/Program\ Files/PremiumSoft/Navicat\ for\ SQL\ Server/navicat.exe 2>&1 | grep -E WM_NOTIFY|TVN_ > out.txt
In a TreeView control, if the following conditions holds: 1. There's only one item in the tree. 2. The control has bit TVS_EDITLABELS (=0x0008) set in dwExStyle. 3. Returned TRUE when receiving TVN_BEGINLABELEDIT. The item will never be selected, at least never drawn as selected.
This happens in a database tool Navicat. Try this to reproduce the bug: 1. Download and install Navicat for Sql Server 10.0.0.3 Trail at http://www.download3k.com/Install-Navicat-The-World-s-best-SQL-Server-GUI-to... 2. Open Navicat, create the only one connection, fill anything in config dialog, no need to be a real sql server. 3. Try do label-editing on item in the TreeView, by click twice (seperated, not double-click) on the item. In fact there will be no label-editing, doing this is to trigger a TVN_BEGINLABELEDIT message. 4. The item will lose selection and will never be selected again. vim o hvs@hvsgentoo ~/Desktop $ sha1sum ~/Downloads/navicat100_sqlserver_en.exe 6236f7a402985aeb3d94fa6f86805af8976c2ee8
Return value on TVN_BEGINLABELEDIT is descripted here http://msdn.microsoft.com/en-us/library/windows/desktop/bb773506(v=vs.85).as...