Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXPEdit inherited now I hear sounds
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXPEdit inherited now I hear sounds

 Post Reply Post Reply
Author
Message Reverse Sort Order
Wolfgang View Drop Down
Newbie
Newbie


Joined: 01 December 2003
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wolfgang Quote  Post ReplyReply Direct Link To This Post Topic: CXPEdit inherited now I hear sounds
    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

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 December 2003 at 12:54am
Need to add ES_WANTRETURN  style to your edit control.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Wolfgang View Drop Down
Newbie
Newbie


Joined: 01 December 2003
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wolfgang Quote  Post ReplyReply Direct Link To This Post 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

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.157 seconds.