Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Panel States

Do you have a suggested way of saving the initial state of your dialog so that when a test is complete you can set all the controls and indicators back to their default positions?

I know that in CVI SavePanelState and RecallPanelState work really well. I can't think of a good way to do the equivalent in VC++ however.

Thanks,

Grant
Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 1 of 2
(3,084 Views)
You should use serialization to store the data used to create the views in your application. There is an Application Note 175 that explains the benefits of using a Document/View architecture versus Dialog and what it means to serialize the data stored in your application so that it retains its states between sessions. You can view this app note at the following link:

http://zone.ni.com/devzone/conceptd.nsf/appnotebynumber/B3C0698D5213E8AF86256A7100645C2F?OpenDocument&node=dz52000_us

To understand more about serialization in general you should visit the Microsoft Developer Network (http://msdn.microsoft.com) for a comprehensive and definitive explanation of the concept.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(3,084 Views)