flat assembler
Message board for the users of flat assembler.
Index
> Windows > Subclass edit control |
Author |
|
revolution 07 Jul 2011, 19:35
This looks more likely to work:
Code: invoke SetWindowLong,[hwndEdit],GWL_WNDPROC,TheEditProc |
|||
07 Jul 2011, 19:35 |
|
typedef 07 Jul 2011, 23:02
hmm odd
|
|||
07 Jul 2011, 23:02 |
|
FrozenKnight 08 Jul 2011, 17:56
I have a working edit control subclass here.
i use the following code to set it up. Code: push IDI_FLOATNUMBER push [hdlg] call [GetDlgItem] push fltedit_proc push GWL_WNDPROC push eax call [SetWindowLong] cmp eax, 0 jz .wmclose mov [proc_edit], eax I don't really like using the invoke syntax, but i think that revolution probably caught your problem. Since the subclass i used appears closely related to what your doing i think my example may help a little with other issues. (again sorry about not using the familiar invoke but i really do prefer using the push/pop notation.) |
|||
08 Jul 2011, 17:56 |
|
Synaps3 09 Jul 2011, 19:55
I made the changes you suggested, it still doesn't work, but it did change. Now the edit control is unresponsive. The only way I can move the caret into it is by pressing the tab key, but when I try to type in the box, nothing happens. It doesn't accept text. Any other suggestions.
Thanks for the help. |
|||
09 Jul 2011, 19:55 |
|
typedef 09 Jul 2011, 21:18
can you post rc.inc please
|
|||
09 Jul 2011, 21:18 |
|
bitshifter 10 Jul 2011, 16:40
Also my BitBox utility uses EDIT subclassing.
It may provide some good reference. I subclass two edit controls into one proc http://board.flatassembler.net/topic.php?t=11615 |
|||
10 Jul 2011, 16:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.