diff options
Diffstat (limited to 'plugins/FileAsMessage/src/optionsdlg.cpp')
-rw-r--r-- | plugins/FileAsMessage/src/optionsdlg.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/plugins/FileAsMessage/src/optionsdlg.cpp b/plugins/FileAsMessage/src/optionsdlg.cpp index 7bbc88a2ed..045973cb35 100644 --- a/plugins/FileAsMessage/src/optionsdlg.cpp +++ b/plugins/FileAsMessage/src/optionsdlg.cpp @@ -30,12 +30,12 @@ int settingId[] = -IDC_SENDDELAY,
-IDC_CHUNKSIZE
};
-//
+
+/////////////////////////////////////////////////////////////////////////////////////////
// OptionsDlgProc()
// this handles the options page
-// verwaltet die Optionsseite
-//
-INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
+
+static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg) {
case WM_INITDIALOG:
@@ -94,3 +94,18 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l return FALSE;
}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// module entry point
+
+int OnOptInitialise(WPARAM wParam, LPARAM)
+{
+ OPTIONSDIALOGPAGE odp = {};
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
+ odp.szTitle.a = SERVICE_TITLE;
+ odp.szGroup.a = LPGEN("Events");
+ odp.flags = ODPF_BOLDGROUPS;
+ odp.pfnDlgProc = OptionsDlgProc;
+ g_plugin.addOptions(wParam, &odp);
+ return 0;
+}
|