mirror of
https://github.com/netease-im/NIM_Duilib_Framework.git
synced 2026-10-18 22:51:09 +08:00
0702ea2cf4
Signed-off-by: jiajia_deng <2894220@gmail.com>
43 lines
658 B
C++
43 lines
658 B
C++
#include "stdafx.h"
|
|
#include "about_form.h"
|
|
#include <shellapi.h>
|
|
|
|
const LPCTSTR AboutForm::kClassName = L"About";
|
|
|
|
AboutForm::AboutForm()
|
|
{
|
|
}
|
|
|
|
|
|
AboutForm::~AboutForm()
|
|
{
|
|
}
|
|
|
|
std::wstring AboutForm::GetSkinFolder()
|
|
{
|
|
return L"controls";
|
|
}
|
|
|
|
std::wstring AboutForm::GetSkinFile()
|
|
{
|
|
return L"about.xml";
|
|
}
|
|
|
|
std::wstring AboutForm::GetWindowClassName() const
|
|
{
|
|
return kClassName;
|
|
}
|
|
|
|
void AboutForm::InitWindow()
|
|
{
|
|
ui::Label* link = static_cast<ui::Label*>(FindControl(L"link"));
|
|
if (link)
|
|
{
|
|
link->AttachButtonUp([link](ui::EventArgs* args) {
|
|
ShellExecute(NULL, L"open", link->GetText().c_str(), NULL, NULL, SW_SHOWDEFAULT);
|
|
return true;
|
|
});
|
|
}
|
|
}
|
|
|