Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Messages from CEdit

0 views
Skip to first unread message

Barry Fruitman

unread,
Jan 26, 2000, 3:00:00 AM1/26/00
to
Hi all,

I am new to MFC and have not been able to find a solution to my problem.
I am writing a chat application where the user types chat messages in a
one-line CEdit control. I want them to be able to hit the Enter key when
they're finished a line to send it. However I can't figure out how to
trigger a callback when they hit Enter. I tried ON_EN_UPDATE but that
callback isn't triggered by Enter. Any suggestions?

Any and all replies are much appreciated.


Barry
bar...@sympatico.ca

Joe Drago

unread,
Jan 26, 2000, 3:00:00 AM1/26/00
to
That would be OnChar... check for VK_RETURN I believe. And you can check the
flags too to see if they are holding Control, Alt, etc.

Joe Drago

0 new messages