Whatever control has focus and is being typed in will be the control class that you want to detect WM_CHAR. If you want to detect the enter key from multiple controls, you will need multiple handlers for each control class.

Phil