Archived

This topic is now archived and is closed to further replies.

Edit Box detecting input

This topic is 5239 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

How would I go about detecting when someone presses the enter key in an edit box on my win32 dialog? I''ve tried hooking the EN_CHANGE notification in the parent window''s WM_COMMAND message bt it still won''t work :\

Share this post


Link to post
Share on other sites
quote:
Original post by Xtremehobo
If I subclass it though, won''t I have to do my own custom drawing or does the win32 api provide a function for doing that?


Nope. You can just handle the WM_KEYDOWN message. Instead of calling DefWindowProc() you can call CallWindowProc() and let the default window proc for the edit handle the drawing. See the example here



Qui fut tout, et qui ne fut rien
Invader''s Realm

Share this post


Link to post
Share on other sites