NubTruck 0 Newbie Poster

Hi guys,

I am trying to create a edit control, with pure win32. When the return key is pressed I would like it to run a section of code. I have tried getting it to handle the return key message through the main windows message handler. Unfortunately that causes it to play a sound every time I press the return key instead of running the code... Would I be right in thinking that I should create a custom control and handle the message through a custom message handler, or is there a better way of doing this entirely?

Thanks for you help.