title: Saving and restoring state of elements in dialog based MFC application
body: <p>I am writing simple C++ dialog based MFC application. It has several inputs, checkboxes, time selects. As a part of it's functionality it should have Save and Load buttons which would save/restore state of those elements. For example text in input, if some elements are disabled or not, their values.</p>
  
  <p>The question is - what is the right approach to do it? The most simple and direct one would be to save values in a specific order (say <code>text1,text2,checkbox1_state,time_select1</code>) and then in the same order restore them one by one.</p>
  
  <p>Are there other options? I don't want to use some other libraries (saw Boost is mentioned frequently in terms of serialization).</p>