📄 aboutdlg.cpp
字号:
// aboutdlg.cpp : implementation of the CAboutDlg class
//
/////////////////////////////////////////////////////////////////////////////
//PK 2007/03/08 - 10
#include "stdafx.h"
#include "resource.h"
#include "aboutdlg.h"
#include "global.h"
LRESULT CAboutDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CenterWindow(GetParent());
HICON hIconSmall = (HICON)::LoadImage(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDR_MAINFRAME),
IMAGE_ICON, ::GetSystemMetrics(SM_CXSMICON), ::GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR);
SetIcon(hIconSmall, FALSE);
_help.SubclassWindow(GetDlgItem(IDC_LINK_HELP));
_help.SetHyperLink("http://lunatic.bokee.com/6153160.html");
_books.SubclassWindow(GetDlgItem(IDC_LINK_BOOKS));
_books.SetHyperLink("http://lunatic.bokee.com/6153181.html");
_code.SubclassWindow(GetDlgItem(IDC_LINK_CODE));
_code.SetHyperLink("http://lunatic.bokee.com/6153138.html");
_feedback.SubclassWindow(GetDlgItem(IDC_LINK_FEEDBACK));
_feedback.SetHyperLink("http://lunatic.bokee.com/6153138.html");
_blog.SubclassWindow(GetDlgItem(IDC_LINK_BLOG));
_blog.SetHyperLink("http://lunatic.bokee.com");
CStatic txt(GetDlgItem(IDC_TXT_NOTE));
stringstream note;
note << "Recite 1.1" << std::endl
<< "This is a FREE software. You can use it, distribute it, even modify it freely. "
<< "If you extend it, or modify its bugs, please let me know. I'm glad of knowing this. "
<< "But do not use it for any commercial intention." << std::endl
<< "All copyrights of this software are kept by author!" << std::endl
<< "The author is not responsible for any result caused by using this software!" << std::endl << std::endl
<< "" << std::ends;
txt.SetWindowText(note.str().c_str());
return TRUE;
}
LRESULT CAboutDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
EndDialog(wID);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -