Sign in to follow this  
Funkymunky

edit-combobox enter key

Recommended Posts

my program is written entirely in C++ windows API, with a tab control that displays borderless child dialogs. On one of these child dialogs "pages", there is a dropdown combobox. I want the user to be able to type something in to the edit portion of the combobox, and when they hit enter, have it get added to the dropdown list portion. How do I catch the enter key? I tried to subclass the control via this method, but it didn't receive any WM_KEYDOWN events. I also tried matching the HWND of the combobox with GetFocus() in the child dialog's procedure, but realized that the child dialog itself isn't receiving WM_KEYDOWN. how am i supposed to be going about this?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this