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
invoke
.elseif (Char == CHAR) Char return
.endf
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
invoke
.elseif (Char == CHAR) Char return
.endf
Hi Fernand
To get a keypress look at WM_KEYDOWN or WM_CHAR.
BTW. Such questions should be asked in the Main forum.
KetilO
To get a keypress look at WM_KEYDOWN or WM_CHAR.
BTW. Such questions should be asked in the Main forum.
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:
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:
You check for a keyboard input and a button click SEPARATELY and invoke whichever procedure is required in each case.
Raymond
Raymond