diff options
Diffstat (limited to '7zip/FileManager/Resource/AboutDialog/AboutDialog.cpp')
-rwxr-xr-x | 7zip/FileManager/Resource/AboutDialog/AboutDialog.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/7zip/FileManager/Resource/AboutDialog/AboutDialog.cpp b/7zip/FileManager/Resource/AboutDialog/AboutDialog.cpp index 733b1890..e4dd2313 100755 --- a/7zip/FileManager/Resource/AboutDialog/AboutDialog.cpp +++ b/7zip/FileManager/Resource/AboutDialog/AboutDialog.cpp @@ -4,20 +4,22 @@ #include "resource.h" #include "AboutDialog.h" -#include "Common/String.h" #include "../../HelpUtils.h" #include "../../LangUtils.h" static CIDLangPair kIDLangPairs[] = { { IDC_ABOUT_STATIC_REGISTER_INFO, 0x01000103 }, + { IDC_ABOUT_BUTTON_SUPPORT, 0x01000104 }, { IDC_ABOUT_BUTTON_REGISTER, 0x01000105 }, - { IDOK, 0x02000702 } + { IDOK, 0x02000702 } }; -static LPCTSTR kHomePageURL = TEXT("http://www.7-zip.org/"); -static LPCTSTR kRegisterPageURL = TEXT("http://www.7-zip.org/register.html"); -static LPCTSTR kSupportPageURL = TEXT("http://www.7-zip.org/support.html"); +#define MY_HOME_PAGE TEXT("http://www.7-zip.org/") + +static LPCTSTR kHomePageURL = MY_HOME_PAGE; +static LPCTSTR kRegisterPageURL = MY_HOME_PAGE TEXT("register.html"); +static LPCTSTR kSupportPageURL = MY_HOME_PAGE TEXT("support.html"); static LPCWSTR kHelpTopic = L"start.htm"; @@ -46,15 +48,11 @@ bool CAboutDialog::OnButtonClicked(int buttonID, HWND buttonHWND) ::MyShellExecute(kHomePageURL); break; case IDC_ABOUT_BUTTON_REGISTER: - { ::MyShellExecute(kRegisterPageURL); break; - } - case IDC_ABOUT_BUTTON_EMAIL: - { + case IDC_ABOUT_BUTTON_SUPPORT: ::MyShellExecute(kSupportPageURL); break; - } default: return CModalDialog::OnButtonClicked(buttonID, buttonHWND); } |