mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 16:07:05 -06:00
easy 7-zip mod for 23.01: rebased from 19.00
This commit is contained in:
committed by
shunf4
parent
6086b78b4f
commit
b34719746b
42
CPP/7zip/UI/FileManager/AboutEasy7ZipDialog.cpp
Normal file
42
CPP/7zip/UI/FileManager/AboutEasy7ZipDialog.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
// AboutEasy7ZipDialog.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "AboutEasy7ZipDialog.h"
|
||||
|
||||
#include "HelpUtils.h"
|
||||
|
||||
static LPCSTR kHelpTopic = "start.htm";
|
||||
|
||||
bool CAboutEasy7ZipDialog::OnInit()
|
||||
{
|
||||
NormalizePosition();
|
||||
return CModalDialog::OnInit();
|
||||
}
|
||||
|
||||
void CAboutEasy7ZipDialog::OnHelp()
|
||||
{
|
||||
ShowHelpWindow(kHelpTopic);
|
||||
}
|
||||
|
||||
bool CAboutEasy7ZipDialog::OnButtonClicked(int buttonID, HWND buttonHWND)
|
||||
{
|
||||
LPCTSTR url;
|
||||
switch(buttonID)
|
||||
{
|
||||
case IDC_ABOUT_BUTTON_EASY7ZIP_HOMEPAGE: url = TEXT("http://www.e7z.org/"); break;
|
||||
default:
|
||||
return CModalDialog::OnButtonClicked(buttonID, buttonHWND);
|
||||
}
|
||||
|
||||
#ifdef UNDER_CE
|
||||
SHELLEXECUTEINFO s;
|
||||
memset(&s, 0, sizeof(s));
|
||||
s.cbSize = sizeof(s);
|
||||
s.lpFile = url;
|
||||
::ShellExecuteEx(&s);
|
||||
#else
|
||||
::ShellExecute(NULL, NULL, url, NULL, NULL, SW_SHOWNORMAL);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user