📄 aboutpage.cpp
字号:
// AboutPage.cpp : implementation file
/*********************************************************************
* Author: Simon Wang
* Date: 2000-11-16
* Contact us: inte2000@263.net
* Web Page: http://www.winmsg.com/cn/orbit.htm (for Chinese version)
* http://www.winmsg.com/orbit.htm (for English version)
**********************************************************************/
#include "stdafx.h"
#include "tabbars.h"
#include "AboutPage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAboutPage property page
IMPLEMENT_DYNCREATE(CAboutPage, CPropertyPage)
CAboutPage::CAboutPage() : CPropertyPage(CAboutPage::IDD)
{
//{{AFX_DATA_INIT(CAboutPage)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CAboutPage::~CAboutPage()
{
}
void CAboutPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutPage)
DDX_Control(pDX, IDC_STC_HOMEPAGE, m_stcEmail);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutPage, CPropertyPage)
//{{AFX_MSG_MAP(CAboutPage)
ON_WM_CTLCOLOR()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAboutPage message handlers
BOOL CAboutPage::OnInitDialog()
{
CPropertyPage::OnInitDialog();
//本软件开放源代码,它的许多模块使用的是共享代码,一些思想参照了WndTab插件,欢迎
//你为它添加新功能,并将您的信息添加到下面的信息中,无论如何,请您保留这些共享代
//码中作者的版权信息和下面的感谢信息
//任何关于本软件的任何问题请发信到inte2000@263.net
//最新的版本请关注http://www.winmsg.com/cn/tabbar.htm
static TCHAR szContent[] = _T("Special Thanks : \r\n\r\n \
class CTabCheckListBox supply by Qing Zhang (qzhang7@tfn.net) \r\n \
Orbit have Add CTabCheckListBox class some special color option \r\n\r\n \
Brent Corkum -- BCMenu class\r\n \
Portions of code supplied by: \r\n \
Ben Ashley,Girish Bharadwaj,Jean-Edouard Lachand-Robert,Robert Edward Caldecott,Kenny Goers,Leonardo Zide,Stefan Kuhr \r\n \
Bug Fixes: \r\n \
Stefan Kuhr,Martin Vladic,Kim Yoo Chul \r\n\r\n \
CDirDialog class from www.codeguru.com \r\n Minor Modifications - Jignesh Patel \r\n\r\n \
Oz Solomonovich -- CShellContextMenu class (Copyright Reserved) \r\n\r\n \
CHyperLink Static Control : \r\n \
Copyright (C) 1997, 1998 Giancarlo Iovino (giancarlo@saria.com)All rights reserved. May not be sold for profit.\r\n \
This code is based on CHyperlink by Chris Maunder.<GotoURL> function by Stuart Patterson appeared in the Aug, 1997 Windows Developer\'s Journal. <Default hand cursor> from Paul DiLascia's Jan 1998 MSJ article. \r\n\r\n \
MFC Grid Control\r\n \
Written by Chris Maunder\r\nmailto:chrismaunder@codeguru.com\r\nCopyright (c) 1998.\r\n\
The code contained in this file is based on the original\r\n \
WorldCom Grid control written by Joe Willcoxson, \r\n \
mailto:chinajoe@aol.com\r\n \
http://users.aol.com/chinajoe\r\n\r\n \
Friend Link : \r\n\
""VB Square""(http://majifeng.top263.net)\r\n\r\n \
This copy is freeware,Copyright (C) 1999 - 2001 Orbit Studio\r\n \
Welcome to BUG report and good instruction, attach your name here.\r\n \
BUG Report to inte2000@263.net \r\n \
visit http://www.winmsg.com/tabbar.htm for new version\
");
CEdit *pEdit = (CEdit *)GetDlgItem(IDC_EDIT_THANKS);
pEdit->SetWindowText(szContent);
pEdit->SetSel(0,-1);
pEdit->SetReadOnly();
// m_stcEmail.SetURL("http://www.winmsg.com/cn/tabbar.htm");
m_stcEmail.ModifyLinkStyle(0L,CHyperLink::StyleUseHover);
GetDlgItem(IDC_STC_TITLE)->SetFocus();
return FALSE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
HBRUSH CAboutPage::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CPropertyPage::OnCtlColor(pDC, pWnd, nCtlColor);
UINT nID = pWnd->GetDlgCtrlID();
if(nID == IDC_EDIT_THANKS)
{
pDC->SetTextColor(RGB(145,16,239));
}
else if(nID == IDC_STC_TITLE)
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(11,169,244));
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -