Click to See Complete Forum and Search --> : WM_CHAR? WM_KEYDOWN? help..


Abulehleh
September 16th, 2006, 02:57 AM
hi

Im doing a network-winapi program, like a tiny icq, only with two participants at a time..

Well, problem is that i dont know how to check if the focus stands on the "writing bar", and how to handle the pressing of an Enter key, when its in focus..

plz include in your answer the way to do it, and a short explenation on how to actually use it in my code (my knowledge of winapi is not at all great..)

thanks alot!!
Uri.

Krishnaa
September 16th, 2006, 08:16 AM
This thread might help.

http://www.codeguru.com/forum/showthread.php?t=366933

Abulehleh
September 16th, 2006, 08:25 AM
umm.. how should this help me?
i didnt understand the connection..

greg_dolley
September 23rd, 2006, 10:40 PM
You can track if it's in focus by handling the WM_FOCUS event. To detect the enter key you use the WM_KEYDOWN event. To detect the character keys you use the WM_CHAR event.

Greg Dolley