edit-combobox enter key

Started by
-1 comments, last by Funkymunky 16 years, 1 month ago
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?

This topic is closed to new replies.

Advertisement