flat assembler
Message board for the users of flat assembler.
Index
> Windows > Brief way to preserve settings in registry |
Author |
|
bitRAKE 11 Mar 2022, 18:56
[fasmg][Win64]
Example binary functionality of Most Recent Used (MRU) lists with a fixed size of one. It's an easy way to preserve dialog settings across multiple executions with very little effort. Should work from before WinXP to present. Note: registry file included to clear any testing. Extending the idea: 1. add a dropdown and support up to 29 configuration sets for the dialog. 2. wrap dialog macros to create save/restore functions automatically.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||||||||||||||||||||
11 Mar 2022, 18:56 |
|
FlierMate 12 Mar 2022, 09:01
It works on my Windows 10.
Nice tutorial code. |
|||
12 Mar 2022, 09:01 |
|
bitRAKE 12 Mar 2022, 16:55
The MRU list has been under documented for a long time. This is in spite of the legal settlement against MS, and the continued updates and modernization of the common controls library. MRU's are very useful to persist state and give the user a cohesive feel even when the UI parts are completely separate in their source or functionality.
Now that I think about it, I should add some indicator as to where the present data is from: default, registry or modified.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
||||||||||
12 Mar 2022, 16:55 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.