From 9bad6cb2e2eec6489554baaf3662865e1c9ad073 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Wed, 27 Mar 2013 19:20:16 +0000 Subject: BuddyPounce: - options&dialog cosmetics - fully commented unused items (possible for future use) - options moved to "Message sessions" group patch from person git-svn-id: http://svn.miranda-ng.org/main/trunk@4219 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BuddyPounce/src/dialog.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'plugins/BuddyPounce/src/dialog.cpp') diff --git a/plugins/BuddyPounce/src/dialog.cpp b/plugins/BuddyPounce/src/dialog.cpp index db6f956dac..1f1aae170c 100644 --- a/plugins/BuddyPounce/src/dialog.cpp +++ b/plugins/BuddyPounce/src/dialog.cpp @@ -33,7 +33,7 @@ void populateContacts(HANDLE BPhContact,HWND hwnd2CB) void saveLastSetting(HANDLE hContact, HWND hwnd) { - TCHAR number[8], string[1024]; + TCHAR number[8];//, string[1024];//for sending file name switch (DBGetContactSettingByte(hContact, modname, "LastSetting", 2)) // nothing to do { case 0: // Send If My Status Is... @@ -60,10 +60,10 @@ void saveLastSetting(HANDLE hContact, HWND hwnd) DBWriteContactSettingByte(hContact, modname, "ConfirmTimeout", (BYTE)_ttoi(number)); break; - case 7: // send a file - GetDlgItemText(hwnd, IDC_SETTINGTEXT, string, 1024); - DBWriteContactSettingTString(hContact, modname, "FileToSend", string); - break; +// case 7: // send a file +// GetDlgItemText(hwnd, IDC_SETTINGTEXT, string, 1024); +// DBWriteContactSettingTString(hContact, modname, "FileToSend", string); +// break; } } @@ -71,10 +71,10 @@ void hideAll(HWND hwnd) { ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_HIDE); ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG2), SW_HIDE); - ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_HIDE); +// ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_HIDE); ShowWindow(GetDlgItem(hwnd, IDC_SETTINGNUMBER), SW_HIDE); ShowWindow(GetDlgItem(hwnd, IDC_SPIN), SW_HIDE); - ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_HIDE); +// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_HIDE); } void getDefaultMessage(HWND hwnd, UINT control, HANDLE hContact) @@ -406,12 +406,12 @@ INT_PTR CALLBACK BuddyPounceDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l ShowWindow(GetDlgItem(hwnd, IDC_SPIN), SW_SHOW); break; - case 7: // send a file - ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_SHOW); - SetDlgItemText(hwnd, IDC_SETTINGMSG, TranslateT("Send a file")); - ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_SHOW); - ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_SHOW); - break; +// case 7: // send a file +// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_SHOW); +// SetDlgItemText(hwnd, IDC_SETTINGMSG, TranslateT("Send a file")); +// ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_SHOW); +// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_SHOW); +// break; } DBWriteContactSettingByte(wi->hContact, modname, "LastSetting", (BYTE)item); } @@ -542,12 +542,12 @@ INT_PTR CALLBACK BuddyPounceOptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, L ShowWindow(GetDlgItem(hwnd, IDC_SPIN), SW_SHOW); break; - case 7: // send a file - ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_SHOW); - SetDlgItemText(hwnd, IDC_SETTINGMSG, TranslateT("Send a file")); - ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_SHOW); - ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_SHOW); - break; +// case 7: // send a file +// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_SHOW); +// SetDlgItemText(hwnd, IDC_SETTINGMSG, TranslateT("Send a file")); +// ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_SHOW); +// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_SHOW); +// break; } DBWriteContactSettingByte(wi->hContact, modname, "LastSetting", (BYTE)item); } -- cgit v1.2.3