From 4e1b05db0379ee0bb6bdd146e575b6bdd5e42cf5 Mon Sep 17 00:00:00 2001 From: sje Date: Sat, 11 Nov 2006 13:26:01 +0000 Subject: added option to enable/disable message text in popup, made options page a little bigger git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@40 4f64403b-2f21-0410-a795-97e2b3489a10 --- message_notify/options.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'message_notify/options.cpp') diff --git a/message_notify/options.cpp b/message_notify/options.cpp index 9460843..8b7a40c 100644 --- a/message_notify/options.cpp +++ b/message_notify/options.cpp @@ -67,6 +67,7 @@ static BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l }; } CheckDlgButton(hwndDlg, IDC_CHK_CLOSE, options.close_win ? TRUE : FALSE); + CheckDlgButton(hwndDlg, IDC_CHK_MSG, options.show_msg ? TRUE : FALSE); if(options.timeout == -1) { CheckDlgButton(hwndDlg, IDC_CHK_SETTIMEOUT, FALSE); SetDlgItemInt(hwndDlg, IDC_ED_TIMEOUT, 0, FALSE); @@ -134,6 +135,7 @@ static BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l } SendMessage( GetParent( hwndDlg ), PSM_CHANGED, 0, 0 ); return TRUE; + case IDC_CHK_MSG: case IDC_CHK_CLOSE: case IDC_CHK_TABS: SendMessage( GetParent( hwndDlg ), PSM_CHANGED, 0, 0 ); @@ -165,6 +167,7 @@ static BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l else options.notify_when = NOTIFY_ALWAYS; options.close_win = IsDlgButtonChecked(hwndDlg, IDC_CHK_CLOSE) ? true : false; + options.show_msg = IsDlgButtonChecked(hwndDlg, IDC_CHK_MSG) ? true : false; if(IsDlgButtonChecked(hwndDlg, IDC_CHK_SETTIMEOUT)) { BOOL trans; @@ -224,6 +227,7 @@ void LoadOptions() { options.textCol = (COLORREF)DBGetContactSettingDword(0, MODULE, "TextColour", (DWORD)0x000000); options.consider_tabs = (DBGetContactSettingByte(0, MODULE, "ConsiderTabs", 1) == 1); options.close_win = (DBGetContactSettingByte(0, MODULE, "CloseWin", 0) == 1); + options.show_msg = (DBGetContactSettingByte(0, MODULE, "ShowMsg", 1) == 1); char buff[128]; for(int i = 0; i < 9; i++) { @@ -240,6 +244,7 @@ void SaveOptions() { DBWriteContactSettingDword(0, MODULE, "TextColour", (DWORD)options.textCol); DBWriteContactSettingByte(0, MODULE, "ConsiderTabs", options.consider_tabs ? 1 : 0); DBWriteContactSettingByte(0, MODULE, "CloseWin", options.close_win ? 1 : 0); + DBWriteContactSettingByte(0, MODULE, "ShowMsg", options.show_msg ? 1 : 0); char buff[128]; for(int i = 0; i < 9; i++) { sprintf(buff, "DisableStatus%d", i); -- cgit v1.2.3