![]() |
CXPEdit inherited now I hear sounds |
Post Reply ![]() |
Author | |
Wolfgang ![]() Newbie ![]() Joined: 01 December 2003 Status: Offline Points: 36 |
![]() ![]() ![]() ![]() ![]() Posted: 17 December 2003 at 8:48am |
Hello maybe i have done something wrong, and its easy to work around, but currently i haven't found a solution. My Problem. I have to handle in my Edit the Return key seperatly, so I wrote a new class which inherits the CXPEdit class. I fetch the ON_WM_KEYDOWN(). (I set DLGC_WANTALLKEYS in OnGetDlgCode) Now I handle the VK_RETURN case. But after i handled it, Windows playes the Ping tune... I have done this in other Controls, and there it works without ping maybe someone knows a workaround or a way to avoid this problem allthougether. thanks in advance Wolfbert |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Need to add ES_WANTRETURN style to your edit control.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Wolfgang ![]() Newbie ![]() Joined: 01 December 2003 Status: Offline Points: 36 |
![]() ![]() ![]() ![]() ![]() |
Thanks for your reply. But nevertheless it doesn't work. My Usage is following: I create a ATL Control, put some controls in it (like the Edit Fields) in the OnInit function i Subclass the edits with mine Inherited Return XPEdits. I set the ES_WANTRETURN Style in the original Editfields. I also set the style after i subclassed it. But the Ping sound is still there ... Is there anything else i can do?
Thanks Wolfgang
|
|
![]() |
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 |