The PropertySheet
API lets you define a PropSheetProc
that can (on Windows XP and above) receive messages when the OK or Apply button is pressed. This lets you do processing when one of these buttons is clicked.
However, this handler is called before the individual property pages receive the PSN_APPLY
notification through their respective dialog procedures. I want to do my processing after these notifications have been processed, preferably without ugly hacks. How do I do this?
Background: I'm storing my configuration in a single struct
, and the individual pages each modify parts of this struct
when they are applied. Then, after these values have been written, I want to apply the settings from the struct
all at once, instead of re-applying all of them from each property page.