fnSettings


Prototype

void __cdecl fnSettings ( void );

Return value

None

Parameters

None

Remarks

Use this function if the plugin has some kind of settings that can be stored across different ShapeUp sessions. E.g. ODBC data source names, setup parameters for serial ports etc. If implemented, the function should open a dialog window containing the settings. The user will access this from Tools | Options | Plugins | Loaders | Settings.

Notice: If using MFC, be sure to start the function with AFX_MANAGE_STATE(AfxGetStaticModuleState());

Example

void __cdecl fnSettings ( void )
{
    AFX_MANAGE_STATE(AfxGetStaticModuleState());
    CMyDialog dlg;
    dlg.data = ReadRegistryValue("Data");
    if (dlg.DoModal() == IDOK)
        WriteRegistryValue("Data", dlg.data);
}

See Also

Statistical API