ATL Control and Persistence
Posted on 1999-01-20
I created a control using the ATL wizards in VC++ 6. I added a 'Full Control' into the ATL project (derived from a Combo Box) and a 'Property Page' object.
I added several check boxes onto the property page, then tied them to the control using PROP_ENTRY and the IDL ID. When I use my new control in Test Container, the property page works fine. It remembers it's settings and implements the changes correctly.
However, when I try to insert my control into a test MFC applet, the property page does not work as expected. When I bring up the properties, the page is initialised correctly. Setting options and closing the properties dialog, then bringing it up again seems to remember the settings I chose, but the moment I save the resource, the changes are lost.
Do I have to implement persistence for my property page/control (Save/Load/InitNew methods) and if so, how do I go about doing this - MSDN seems very contradictory in this area.