Hi, whats the answer of this easy question ?:confused: :grin:

ByE
Posted on 2003-07-18 05:56:31 by Bubu-Boy
should be checked by the WndProc of the EditBox. If you want to handle it you should subclass the edit box assigning it your own WndProc. Take a look to the Iczelion tutorials and examples, them are very good and clean.

B7
Posted on 2003-07-18 07:16:11 by Bit7
???:confused:
Posted on 2003-07-18 08:48:07 by Bubu-Boy
He means this:




invoke CreateWindowEx,WS_EX_CLIENTEDGE,
sadd("EDIT"),NULL,
WS_CHILD or WS_CLIPCHILDREN or \
WS_VISIBLE or WS_VSCROLL or WS_HSCROLL,
0,0,0,0,hWnd,0,hInstance,0
invoke SetWindowLong,eax,GWL_WNDPROC,addr EditProc
mov EditOldWndProc, eax
...


EditProc PROC hEdit:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORD

mov eax,wParam
.if al==VK_RETURN
;do stuff here because Enter was pressed !
.else
invoke CallWindowProc,EditOldWndProc,\
hEdit,uMsg,\
wParam,lParam
ret
.endif
xor eax,eax
ret
EditProc endp



did some formatting
Posted on 2003-07-18 10:51:50 by JimmyClif
thx jmmyclif, i've got no much time in these days to replay back...
Posted on 2003-07-21 02:36:49 by Bit7
np :) It's not that I wrote that thing from scratch - I just copy pasted out of an recent project ;)
Posted on 2003-07-21 08:36:17 by JimmyClif
Thank you very much!
Posted on 2003-07-21 16:01:02 by Bubu-Boy