Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » StateinFile problem for Themes? Collapse All
Subject Author Date
Gunasekaran Velu May 9, 2007 - 2:37 AM

Hi folks

In my application when i close the application i write the user setting into file both mainfrm as well as childfrm , when i open the or run the application i load the setting from that particular file (UI files),the problem is when i chose the theme for my application and close the application again i run the application my selected theme was not setting the always default theme is setting. i want to write all the user setting and theme setting into the file. Can u tell me the what is problem in the writing file. same case will appear in ur stateinfile sample application. Awaiting for ur reply as soon as poosible.

Thanks and Regards

Suhai Gyorgy May 9, 2007 - 6:48 AM

Check out this FAQ: How to make the current theme persistant between application runs? This talks about the methods g_PaintManager.PaintManagerStateLoad and g_PaintManager.PaintManagerStateSave, which store to the registry. But for you, last sentence of this FAQ is important:
"You can also serialize the paint manager’s state to a CArchive using the PaintManagerStateSerialize() method."