diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-15 12:52:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-15 12:52:24 +0300 |
commit | 3868296f242d7595347e99beb9c239279de4bfff (patch) | |
tree | b11396e44633e059860195a3376f84dfa60eb1b5 /plugins/TabSRMM/src/templates.cpp | |
parent | cdfee30cb545e43dac6d44ac6aab60859aefe5aa (diff) |
CCtrlButton + OnClick => CCtrlHyperlink
Diffstat (limited to 'plugins/TabSRMM/src/templates.cpp')
-rw-r--r-- | plugins/TabSRMM/src/templates.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/templates.cpp b/plugins/TabSRMM/src/templates.cpp index 870d9ae07a..b24b4412e5 100644 --- a/plugins/TabSRMM/src/templates.cpp +++ b/plugins/TabSRMM/src/templates.cpp @@ -117,7 +117,7 @@ CTemplateEditDlg::CTemplateEditDlg(BOOL _rtl, HWND hwndParent) : CSuper(IDD_TEMPLATEEDIT), rtl(_rtl), edtText(this, IDC_EDITTEMPLATE), - btnHelp(this, IDC_VARIABLESHELP), + urlHelp(this, IDC_VARIABLESHELP, "https://wiki.miranda-ng.org/index.php?title=Plugin:TabSRMM/en/Templates"), btnSave(this, IDC_SAVETEMPLATE), btnForget(this, IDC_FORGET), btnRevert(this, IDC_REVERT), @@ -136,7 +136,6 @@ CTemplateEditDlg::CTemplateEditDlg(BOOL _rtl, HWND hwndParent) : edtText.OnChange = Callback(this, &CTemplateEditDlg::onChange_Text); - btnHelp.OnClick = Callback(this, &CTemplateEditDlg::onClick_Help); btnSave.OnClick = Callback(this, &CTemplateEditDlg::onClick_Save); btnForget.OnClick = Callback(this, &CTemplateEditDlg::onClick_Forget); btnRevert.OnClick = Callback(this, &CTemplateEditDlg::onClick_Revert); @@ -230,11 +229,6 @@ void CTemplateEditDlg::onClick_Forget(CCtrlButton*) SendDlgItemMessage(m_hwnd, IDC_EDITTEMPLATE, EM_SETREADONLY, TRUE, 0); } -void CTemplateEditDlg::onClick_Help(CCtrlButton*) -{ - Utils_OpenUrl("https://wiki.miranda-ng.org/index.php?title=Plugin:TabSRMM/en/Templates"); -} - void CTemplateEditDlg::onClick_Preview(CCtrlButton*) { int iIndex = SendDlgItemMessage(m_hwnd, IDC_TEMPLATELIST, LB_GETCURSEL, 0, 0); |