I need your help again :confused:

I try to figure how to read a Buttom Cick or the CHAR (return) for the same routine

.elseif uMsg == WM_COMMAND

mov eax, lParam ; Read the Buttom
and eax, 0FFFFh
mov edx, wParam
shr edx, 16
mov Char, eax

mov eax,wParam ; Read the Return key board
and eax, 0FFFFh
mov edx, wParam
shr edx, 16

.if dx == BN_CLICKED
.if (ax == 400) Button #400
invoke ...
.elseif (ax == 500) Button #500
.elseif (Char == CHAR) Char return
Posted on 2003-01-21 21:59:22 by Fernand
Hi Fernand

To get a keypress look at WM_KEYDOWN or WM_CHAR.

BTW. Such questions should be asked in the Main forum.

Posted on 2003-01-22 03:05:39 by KetilO
Thank for your reply...
I tried it with WM_KEYDOWN or WM_CHAR and the big problem is, if I used it I am unable to use the Buttom

PS The next time I will use the Main forum:alright:
Posted on 2003-01-22 08:48:07 by Fernand
You check for a keyboard input and a button click SEPARATELY and invoke whichever procedure is required in each case.

Posted on 2003-01-22 19:19:11 by Raymond