I'm trying to save my the state of a System::Windows::Forms::Form
when my application shuts down. I can record the window's size, position and window state without any issues but if the window was maximised when it was closed the ::Size
member records the maximised size of the window.
Is there any way to record the non-maximised size or do I need to intercept the on-maximise event and record it manually?