Print Page | Close Window

CXPEdit inherited now I hear sounds

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=305
Printed Date: 17 July 2025 at 2:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXPEdit inherited now I hear sounds
Posted By: Wolfgang
Subject: CXPEdit inherited now I hear sounds
Date 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




Replies:
Posted By: Oleg
Date Posted: 25 December 2003 at 12:54am
Need to add ES_WANTRETURN  style to your edit control.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Wolfgang
Date Posted: 29 December 2003 at 3:55am

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

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net