diff options
Diffstat (limited to 'message_notify/options.cpp')
-rw-r--r-- | message_notify/options.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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);
|