I have a dialog-based MFC application without buttons, just 2 textboxes. Whenever user presses enter, application exits. I've been searching for a way to ignore enter-key presses for a few days now and all I found were a few outdated solutions that didn't work for me, I have Visual Studio 2010.