
WTL edit controls in COM controls and beeps
hallo,
I use a edit control based on Noel Frankinet in a grid COM control
I want finish the editing process with the "enter" key.
Because the edit control didn't handled this message, I handle the message
WM_GETDLGCODE and say I want to it. - thats work fine.
but every time I finish the editing proces with the enter key, I must hear a
beep.
I don't want to listen to this stupid beep. Is ther every one who can help
me?
class WtlGridTextEdit : public CWindowImpl<WtlGridTextEdit, CEdit>
{
public:
DECLARE_WND_CLASS_EX(NULL,0,-1)
BEGIN_MSG_MAP(WtlGridTextEdit)
MESSAGE_HANDLER(WM_KEYDOWN, OnKeyDown)
MESSAGE_HANDLER(WM_GETDLGCODE, OnGetDlgCode)
END_MSG_MAP()
LRESULT OnKeyDown(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam, BOOL&
bHandled);
LRESULT OnGetDlgCode(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled);
Quote:
};
thanks
thomas