Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I feel like an idiot asking this...
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.
0 · ·