Jump to content
  • Advertisement
Sign in to follow this  
Funkymunky

edit-combobox enter key

This topic is 3772 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!