Search code examples
c++wxwidgets

Is there a way to save window sizing information in wxWidgets 2.8+


I know there is a way to save Window placement structures in Windows, but I'm wondering if there is an alternative way that can be used for cross platform wxWidgets app.

Also, what would be the best way to serialize this data without platform specific code.


Solution

  • So, if all you want is to store the size and location of windows, then handle the window resize and move events so that they store this data in wxConfig.

    http://docs.wxwidgets.org/2.9.3/overview_config.html