flat assembler
Message board for the users of flat assembler.
Index
> Windows > EditBox text only into DialogBox |
Author |
|
baldr 13 Jan 2010, 11:29
Teehee,
Subclass that instance of edit control and process WM_CHAR messages. |
|||
13 Jan 2010, 11:29 |
|
ManOfSteel 13 Jan 2010, 11:41
Since you're using a dialog resource for your editbox, get its handle using GetDlgItem.
Using SetWindowLong, change the editbox's procedure (GWL_WNDPROC attribute) and save the result (eax) for later. All this goes into your WM_INITDIALOG handler. Now the new procedure for the editbox will be like any other procedure. In your WM_CHAR handler, check for anything between a/A and z/Z, and finally invoke CallWindowProc to resume the normal procedure. As you can imagine, lpPrevWndFunc is the result of SetWindowLong that you previously saved. Phew EDIT: I know Revolution, I know. But it takes some time to edit those f***** BBs. EDIT2: typo Last edited by ManOfSteel on 13 Jan 2010, 11:54; edited 2 times in total |
|||
13 Jan 2010, 11:41 |
|
revolution 13 Jan 2010, 12:01
Perhaps if enough of us got together we could convince Tomasz to alter the forum code to accept the brackets?
|
|||
13 Jan 2010, 12:01 |
|
MHajduk 13 Jan 2010, 12:25
revolution wrote: Perhaps if enough of us got together we could convince Tomasz to alter the forum code to accept the brackets? ' = %27 |
|||
13 Jan 2010, 12:25 |
|
Teehee 13 Jan 2010, 17:04
Thank you so much, ManOfSteel.
|
|||
13 Jan 2010, 17:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.