![]() |
BUG?: CXTTreeCtrl beeps when pressing VK_RETURN |
Post Reply ![]() |
Author | |
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() Posted: 25 November 2008 at 10:05am |
Hi;
This can be seen in toolkit TreeCtrl sample too: When pressing the ENTER key (VK_RETURN) while a parent node is selected, the expansion state changes, but also a system beep occures (not handled SYSKEYS; e.g. accelerators lead to system sounds)! I think that CXTTreeBase::PreTranslateMessage() should be changed as shown below (Oleg, could you apply this?):
I'm using toolkit version 12.0.1, VC++ 7.1... |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Thanks. changed.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Alex H. ![]() Senior Member ![]() ![]() Joined: 12 February 2004 Status: Offline Points: 266 |
![]() ![]() ![]() ![]() ![]() |
< ="Content-" content="text/; charset=utf-8">< name="ProgId" content="Word.">< name="Generator" content="Microsoft Word 12">< name="Originator" content="Microsoft Word 12"><>
This adoptions leads to a changed behaviour and breaks existing code for handling VK_ENTER in any TVN_KEYDOWN handler by the application! TVN_KEYDOWN now is not triggered anymore for VK_ENTER as it's eaten up by this change. Any suggestions? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Please override CXTTreeCtrl/View override PreTranslateMessage and call CWnd::PreTranslateMessage.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
XPOHuK ![]() Newbie ![]() Joined: 19 March 2009 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() |
Note, that TVN_ITEMEXPANDING notification is not sent when expanding or collapsing using Enter key.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |