flat assembler
Message board for the users of flat assembler.

Index > Windows > Brief way to preserve settings in registry

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 4050
Location: vpcmpistri
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.


Description: API mirroring public symbols
Download
Filename: comctl32.zip
Filesize: 1.82 KB
Downloaded: 294 Time(s)

Description:
Download
Filename: ex_MRU.zip
Filesize: 6.7 KB
Downloaded: 292 Time(s)


_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 11 Mar 2022, 18:56
View user's profile Send private message Visit poster's website Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 219
FlierMate 12 Mar 2022, 09:01
It works on my Windows 10.

Nice tutorial code.
Post 12 Mar 2022, 09:01
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4050
Location: vpcmpistri
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.


Description:
Filesize: 6.92 KB
Viewed: 14042 Time(s)

winXP64.png



_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 12 Mar 2022, 16:55
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.