I want my editbox to be read only when it changes but now it gets read like 4-5 times per change. How can i do this in masm32.

i use:

.elseif uMsg == WM_COMMAND
.if word ptr == EDITBOX_ID
Posted on 2003-06-27 17:23:27 by x-dream
Try something like this:

.elseif uMSg == WM_COMMAND
mov eax,wParam
mov edx,eax
and eax,0FFFFh
shr edx,16
.if (eax == EDITBOX_ID) && (edx == EN_UPDATE)
Posted on 2003-06-27 17:29:12 by QvasiModo
Thank you, worked like a charm.
Posted on 2003-06-27 17:37:37 by x-dream