Capturing the return key?

How would you be able to tell if the user has pressed the ENTER key in an edit control? I made the control with CreateWindow, and I think I need to use WM_COMMAND, but I'm not sure how to use it...
Subclass it and handle WM_KEYDOWN.
Topic archived. No new replies allowed.