flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > [share] BN_PUSHED for BN_PUSHBUTTON with accelerator |
Author |
|
bitRAKE 01 Sep 2020, 16:52
I really like these kinds of helpful snippets of functionality. Are you trying to do a toggle state or something like that? I'll need to create a template to try this out and see what the effect is.
OFFTOPIC: "bt eax,3" is one byte shorter and the same functionality. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
01 Sep 2020, 16:52 |
|
Overclick 01 Sep 2020, 17:35
Quote:
You don't need that)) Quote:
I'll keep in mind, thanks. I'm sure there is some more optimisations can be done. |
|||
01 Sep 2020, 17:35 |
|
bitRAKE 01 Sep 2020, 20:36
So, it's just to simplify owner drawn buttons?
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
01 Sep 2020, 20:36 |
|
Overclick 01 Sep 2020, 22:21
It is BN_PUSHBUTTON which have limited notifications especially for Pushed stage.
|
|||
01 Sep 2020, 22:21 |
|
bitRAKE 02 Sep 2020, 01:11
Very interesting. I would call it "duration sensitive button messaging".
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
02 Sep 2020, 01:11 |
|
Roman 15 Jul 2022, 13:55
How many SetTimer-s could sets ?
For example i have 20 buttons. I want do 20 times SetTimer. And how SetTimer cpu usage ? How load Cpu? And why Settimer need hwnd? To sand messages window? |
|||
15 Jul 2022, 13:55 |
|
Furs 16 Jul 2022, 15:53
SetTimer needs hwnd because it posts WM_TIMER to the window if you decide to not use a callback.
If you don't want this and simply want a callback (function) called, then you can pass NULL to hwnd and supply the last argument to the function of your choice. |
|||
16 Jul 2022, 15:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.