📄 about.old
字号:
/////////////////////////////////////////////////////////////////////////////
//
// FILE: About.cpp : implementation file
//
// See _README.CPP
// Implements the About-box class here, since it was taking up space
//
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MOD_Rssim.h"
#include "MOD_RSsimDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
ON_NOTIFY_EX( TTN_NEEDTEXT, 0, OnTTN_NeedText )
//{{AFX_MSG_MAP(CAboutDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
// ---------------------------------- OnInitDialog ----------------------------
BOOL CAboutDlg::OnInitDialog()
{
CString mailLink,versionStr;
CDialog::OnInitDialog();
// the WWW link is set up here
m_hyperlink1.SubclassDlgItem(IDC_WWWLINK, this);
m_hyperlink2.SubclassDlgItem(IDC_MODICONLINK, this);
// set the URL that we will actually go to here
m_hyperlink1.m_link = "http://www.adroit.co.za/";
// set the URL that we will actually go to here
m_hyperlink2.m_link = "http://www.modicon.com/";
// the Email to link is set up here
m_emaillink1.SubclassDlgItem(IDC_EMAILLINK, this);
// set the URL that we will actually go to here
GetDlgItemText(IDC_ABOUTHEADDING, versionStr); // get our version from this dialog
mailLink.Format("mailto:conradb@adroit.co.za?subject=%s", versionStr); // append it
m_emaillink1.m_link = mailLink;
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION; OCX Property Pages should return FALSE
}
// ------------------------ OnTTN_NeedText ---------------------------------
// TTN_NEEDTEXT message handler for TOOLTIPS
//
BOOL CAboutDlg::OnTTN_NeedText( UINT id, NMHDR * pNMHDR, LRESULT * pResult )
{
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;
UINT nID =pNMHDR->idFrom;
if (pTTT->uFlags & TTF_IDISHWND)
{
// idFrom is actually the HWND of the tool
nID = ::GetDlgCtrlID((HWND)nID);
if(nID)
{
pTTT->lpszText = MAKEINTRESOURCE(nID);
pTTT->hinst = AfxGetResourceHandle();
return(TRUE);
}
}
return(FALSE);
} // OnTTN_NeedText
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -