Click here to Skip to main content
15,895,667 members
Articles / Programming Languages / C

For Simplicity's Sake in Windows

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
26 Jan 2024CPOL4 min read 4K   1  
Capture Enter key in edit control with no dialog box and no subclass.
This is another approach to intercepting a key from inside an edit control in Windows. This redirects a message using a field inside the MSG structure in the WinMain message loop instead of subclassing. It is a simple solution for a simple use case.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
New Zealand New Zealand
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions