This question seems easy but for some reason I have trouble finding the answer.
I have an application that saves the form's size and position on an INI file. That's all an well, however when you close the application when maximized it will save the size and position of the form maximized but not its state.
What I mean is that on the next run the form would appear maximized when in fact it's "restored" but covering the whole desktop.
Is there a way to save the form size previous to the maximize event, then save the fact that the form is maximized. The on the read from the INI file create the form in a maximized state and set its "restore" size to the one before the maximize event?
thanks!