From 1ce5f3406d572da6d3157a85f1c60d998c014c29 Mon Sep 17 00:00:00 2001 From: sje Date: Thu, 26 Apr 2007 07:57:53 +0000 Subject: added more example code and comments git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@156 4f64403b-2f21-0410-a795-97e2b3489a10 --- MirandaPlugin/Templates/1033/options.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MirandaPlugin/Templates/1033/options.cpp b/MirandaPlugin/Templates/1033/options.cpp index b94992f..8534af3 100644 --- a/MirandaPlugin/Templates/1033/options.cpp +++ b/MirandaPlugin/Templates/1033/options.cpp @@ -18,8 +18,11 @@ BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) switch ( msg ) { case WM_INITDIALOG: TranslateDialogDefault( hwndDlg ); + // TODO: read options variable into control states return FALSE; case WM_COMMAND: + // enable the 'apply' button + SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); break; case WM_NOTIFY: switch(((LPNMHDR)lParam)->idFrom) { @@ -27,6 +30,7 @@ BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) switch (((LPNMHDR)lParam)->code) { case PSN_APPLY: + // TODO: read control states into options variable SaveOptions(); } break; -- cgit v1.2.3