Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 Tech Support » How to make a dialog based application persistent ? Collapse All
Subject Author Date
Emmanuel Verguet Dec 12, 2006 - 9:51 AM

Hi,

I have a resizable dialog based application (CExtWA< CExtNCW<CExtResizableDialog> >), and I want its size to be persistent when a user change size, close application and re-open it (and all its control too). Is it possible or is it only allowed for SDI/MDI applications ?

Thanks.

Suhai Gyorgy Dec 12, 2006 - 12:54 PM

Check out EnableSaveRestore method in many of the samples, for example IconEditor’s MainDlg.cpp. Seems like that’s the only method you have to call in the CExtResizableDialog’s OnInitDialog. And one more thing: make sure you call SetRegistryKey in your main application class’ InitInstance method.