Just because of curiosity, what is the best way to do a settings dialog?
Currently, I just use this:
Have an ini file to store settings.
On load, read the settings and store them in variables.
Settings dialog accessed via a menu.
Settings dialog used via DoModal
Settings dialog reads ini and stores settings in variables.
If "ok" is clicked, validate and save new settings to ini.
If DoModal returned "ok" button's ID, read ini and update variables.
This works fine, but something tells me there's a much better way to do this.
Any comments, suggestions would be helpful and appreciated ;)
Thanks.
