Return key in CEdit on CDialogBar
Posted on 1997-03-21
How do I trap a return key in a CEdit derived class when the edit control is on a CDialogBar? Preferably, I would like the solution to be CEdit related, i.e. CMyEdit::OnReturnKey()
Yes it does matter if the CEdit control is on a CDailogBar, that's the problem, somehow the CDialogBar trapps the return key and the WM_CHAR, WM_KEYUP, WM_KEYDOWN, etc. never come through so that the OnChar(), OnKeyUp(), or OnKeyDown() get called.
If your getting the OnChar() message in your CEdit derived class when it's on a CDialogBar let me know. I certainly could be doing something else wrong.