Ok. This should be really simple, but I'm going crazy figuring it out so please help.
You know how if you press enter in an edit box (single line) sometimes it will cause a "default" button to be pressed? I know how to do this in a dialog box, it's easy, but this happens even outside of dialog boxes - I see it all the time in different applications, even right here in Internet Explorer, on Altavista I can type my search and then just hit enter and it automatically selects the "search" button.
Well... how the heck is this done?!? I've been searching through the MSDN for the last hour and I've tried everything I can think of, but I can't get it to work - edit boxes send keyboard presses that they don't process to DefWindowProc, so my parent window that the edit box is in never even sees the keypress. What can I do to fix this, I'm going nuts?
Note - key point, I am not using a dialog box, but a regular WS_OVERLAPPED window. I have to for design reasons.