I was wondering if anyone could explain to me how I can stop, the enter key when pressed, from creating a new line in a multiline edit control
for example:
I have a multiline edit control, i want it so that when the user presses enter, it doesnt create a new line, but instead it does a different command which i already specified
I subclassed the control and handled the WM_KEYDOWN message like so:
Code:case WM_KEYDOWN: { if (wParam == VK_RETURN) { return 0; } break; }