📄 about.h
字号:
/*
Copyright (c) 1999, kSet Lab
Author: Konstantin Bukreev
E-mail: konstantin@mail.primorye.ru
Created: 15.10.99 15:24:09
Version: 1.0.0
About.h : Declaration of the _About
*/
#ifndef __ABOUT_H_
#define __ABOUT_H_
#include "resource.h" // main symbols
#include <atlhost.h>
#include "htmlviewwin.h"
namespace
{
const char htmlbody[] = "<p><font face=\"Tahoma\"><font color=\"#000040\"><strong><big>kSet Editor ActiveX v.1.1.0 <br>"
"</big><small><small>Copyright (c) 1999 kSet Lab </small></small></strong></font></p>"
"<p><font face=\"Tahoma\"><strong><font color=\"#000040\"><small>Author: Konstantin Bukreev</small><br>"
"<small>E-mail</font>:</strong> <a href=\"mailto:konstantin@mail.primorye.ru\">konstantin@mail.primorye.ru</a></small></font></p>"
"</font>";
}
/////////////////////////////////////////////////////////////////////////////
// _About
class _About :
public CAxDialogImpl<_About>
{
HTMLViewWin m_html;
public:
_About()
{
}
~_About()
{
}
enum { IDD = IDD_ABOUT };
BEGIN_MSG_MAP(_About)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
COMMAND_ID_HANDLER(IDOK, OnOK)
COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
END_MSG_MAP()
// Handler prototypes:
// LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
// LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
// LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
RECT rc, rcButton;
GetClientRect(&rc);
::GetClientRect(GetDlgItem(IDOK), &rcButton);
if (SUCCEEDED(m_html.Create1(m_hWnd, HTMLViewWin::exFlat, rc.left, rc.top,
rc.right - (rcButton.right - rcButton.left + 10) , rc.bottom)))
{
TCHAR path[MAX_PATH];
GetModuleFileName(_Module.m_hInstResource, path, MAX_PATH);
CComBSTR url(L"res://");
url += path;
url += L"/RT_JPEG/#205";
m_html.put_Background(url);
m_html.put_HTML(CComBSTR(htmlbody));
}
return 1;
}
LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
EndDialog(wID);
return 0;
}
LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
EndDialog(wID);
return 0;
}
};
#endif //__ABOUT_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -