flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bitRAKE 16 Apr 2024, 01:29
Code: invoke SendMessage, [hTrack], TBM_SETRANGE, 1, 0x007F_0000 invoke SendMessage, [hTrack], TBM_GETPOS, 0, 0 mov [position], eax https://learn.microsoft.com/en-us/windows/win32/controls/trackbar-controls |
|||
![]() |
|
semiono 16 Apr 2024, 20:25
I thank you!
Code: invoke wsprintf,zzzz,'%d',[position] invoke MessageBoxTimeout,HWND_DESKTOP,zzzz,'',MB_TOPMOST,LANG_NEUTRAL,5000 How can I check result? Always zero, zero.. ? ![]() |
|||
![]() |
|
bitRAKE 16 Apr 2024, 21:40
semiono wrote: How can I check result? Always zero, zero.. ? |
|||
![]() |
|
bitRAKE 17 Apr 2024, 04:42
In 64-bit, if you had a whole screen of sliders, this update method seems optimal:
Code: ; notification processing allows id use throughout lifecycle of controls ; updating several trackbar variables ... .WM_NOTIFY: cmp [r9 + NMHDR.code], TRBN_THUMBPOSCHANGING jnz .default mov ecx, [r9 + NMHDR.idFrom] mov eax, [r9 + NMTRBTHUMBPOSCHANGING.dwPos] ; store the new position of moving slider mov [positions + (rcx-TRB_BASE)*4], eax xor eax, eax ; allow control to move retn |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.