Win32 COMBOBOX Enter key?
Can anyone help tell me the general way of capturing an enter key from a combobox after the user has entered text? I have tried subclassing the edit portion of the box via the ChildWindowFromPoint function. According to MSDN this is the only way to do it, but it is not working for me. If anyone else has some advice please share it. Thank You!
[344 byte] By [
tdk_ratboy] at [2007-11-18 19:14:01]

# 1 Re: Win32 COMBOBOX Enter key?
What kind of combo box is it ? A DROP LIST or DROPDOWN ?
And what do you want to do on hitting enter ? Do you want to validate the text typed in ? Do you want to track changes as and when characters are typed in or when you hit enter only ?
# 2 Re: Win32 COMBOBOX Enter key?
I want to just WM_GETTEXT for the text in the edit control. But my problem is the message is not being sent. In fact i do not receive even a WM_KEYDOWN message. But the WNDPROC works because i tested it out with a MessageBox