flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
edemko
invoke SendDlgItemMessage,[hwnd],ID_CONTROL,WM_SETTEXT,0,'this is a text'
|
|||
![]() |
|
Jmac
HI..
Thanks for that.......so I can used that function with changing text or numbers...from within the program... |
|||
![]() |
|
edemko
There is a way to allow numbers in an edit control only:
Code: ;; hlt ; use it to run a debugger invoke GetWindowLong,[idc_txty],GWL_STYLE ; get window style or eax,ES_NUMBER ; prove bit magic you need invoke SetWindowLong,[idc_txty],GWL_STYLE,eax ; set window style ;; edit #2 download api help file http://cracklab.ru/download.php?action=get&n=NjA1 edit #3 create win-concerned posts at this section http://board.flatassembler.net/forum.php?f=3 |
|||
![]() |
|
Jmac
hi
Thanks for the info edemko.. I wonder are there any examples or tut's explaining what I need...... ie the result of a calculation being displayed in a edit style window on a main window. I have yet to find an example of such... |
|||
![]() |
|
shoorick
you can set ES_NUMBER style for edit window while its creation, if it is dialog control - directly in rc editor or in resources where this control declared. use SetDlgItemInt api function then.
|
|||
![]() |
|
Jmac
HI....
thanks for the replies... now placing a number in the window....is there a function I should look at for positioning the digits as they go into the window....ie Right to left x-y positioning or similar I guess.. John |
|||
![]() |
|
r22
Create a control inside the window (you can position the control when creating it), then set your text in that control instead of the the window itself.
|
|||
![]() |
|
shoorick
Jmac
read msdn or win32.hlp about edit controls - a lot of things will become more clear to you. there are styles which let you align text right (ES_RIGHT) and other. it is better to set styles when control is created, changing some styles after edit control is already created may take no effect. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.