summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2009-10-13 04:34:25 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2009-10-13 04:34:25 +0300
commit44cf244bab4c4cba771313bf3151a655775c0e0a (patch)
tree9d3f471cbe048f4ec059f968f1164ae3d7602570
parent7b3818d042772e56dd0f2a59a99baf464d415f29 (diff)
variables button icon, i will not do any changes to this, if you do not like it, send patches (kreol, mozilla e.t.c. ) )
-rw-r--r--stopspam_mod/trunk/options.cpp5
-rw-r--r--stopspam_mod/trunk/resource.h3
-rw-r--r--stopspam_mod/trunk/stopspam.rc2
3 files changed, 6 insertions, 4 deletions
diff --git a/stopspam_mod/trunk/options.cpp b/stopspam_mod/trunk/options.cpp
index 89bf80b..8928988 100644
--- a/stopspam_mod/trunk/options.cpp
+++ b/stopspam_mod/trunk/options.cpp
@@ -79,11 +79,12 @@ INT_PTR CALLBACK MessagesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
case WM_INITDIALOG:
{
TranslateDialogDefault(hwnd);
- gbVarsServiceExist?EnableWindow(GetDlgItem(hwnd, IDC_VARS),1):EnableWindow(GetDlgItem(hwnd, IDC_VARS),0);
SetDlgItemText(hwnd, ID_QUESTION, gbQuestion.c_str());
SetDlgItemText(hwnd, ID_ANSWER, gbAnswer.c_str());
SetDlgItemText(hwnd, ID_CONGRATULATION, gbCongratulation.c_str());
SetDlgItemText(hwnd, ID_AUTHREPL, gbAuthRepl.c_str());
+ variables_skin_helpbutton(hwnd, IDC_VARS);
+ gbVarsServiceExist?EnableWindow(GetDlgItem(hwnd, IDC_VARS),1):EnableWindow(GetDlgItem(hwnd, IDC_VARS),0);
}
return TRUE;
case WM_COMMAND:
@@ -107,7 +108,7 @@ INT_PTR CALLBACK MessagesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0);
return TRUE;
case IDC_VARS:
- variables_showhelp(hwnd, msg, 0, "", "");
+ variables_showhelp(hwnd, msg, VHF_FULLDLG|VHF_SETLASTSUBJECT, NULL, NULL);
return TRUE;
}
SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0);
diff --git a/stopspam_mod/trunk/resource.h b/stopspam_mod/trunk/resource.h
index 42b414b..aece698 100644
--- a/stopspam_mod/trunk/resource.h
+++ b/stopspam_mod/trunk/resource.h
@@ -35,6 +35,7 @@
#define IDC_CHECK2 1019
#define IDC_INVIS_DISABLE 1019
#define ID_REMOVE_TMP 1020
+#define IDC_CUSTOM1 1020
#define ID_REMOVE_TMP2 1021
#define ID_EXCLUDE 1021
#define ID_ADDPERMANENT3 1022
@@ -46,7 +47,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 104
#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1020
+#define _APS_NEXT_CONTROL_VALUE 1021
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
diff --git a/stopspam_mod/trunk/stopspam.rc b/stopspam_mod/trunk/stopspam.rc
index 8beb4ef..74cd783 100644
--- a/stopspam_mod/trunk/stopspam.rc
+++ b/stopspam_mod/trunk/stopspam.rc
@@ -39,7 +39,7 @@ BEGIN
EDITTEXT ID_CONGRATULATION,0,125,300,48,ES_MULTILINE | ES_AUTOVSCROLL | WS_VSCROLL
LTEXT "Auth. request reply:",IDC_STATIC,0,174,270,8
EDITTEXT ID_AUTHREPL,0,187,300,14,ES_AUTOHSCROLL
- PUSHBUTTON "Vars. info",IDC_VARS,2,208,50,14
+ PUSHBUTTON "Vars.",IDC_VARS,0,208,19,14
END
IDD_PROTO DIALOGEX 0, 0, 230, 173