hi I have a subclassed edit control the proc is like this
This is just suposed to clear the edit box when enter is pressed (and later some processing of that text) but each time enter is pressed it makes the default sound even though VK_RETURN message isn't passed to the default edit procedure. so How do I get rid of this sound each time enter is pressed.
if (uMsg==WM_KEYDOWN && LOWORD(wParam)==VK_RETURN)
if (SendMessage(hWnd, WM_GETTEXT, 100, (LPARAM)Buffer))
SendMessage(hWnd, EM_SETSEL, 0, -1);
SendMessage(hWnd, WM_CLEAR, 0, 0);
return CallWindowProc((void *)OrigonalEditProc, hWnd, uMsg, wParam, lParam);