www.gusucode.com > VC++操作SqlServer数据库的参考源程序源码程序 > VC++操作SqlServer数据库的参考源程序源码程序/code/About.cpp

    // About.cpp : implementation file
// Download by http://www.NewXing.com

#include "stdafx.h"
#include "Student.h"
#include "About.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAbout dialog


CAbout::CAbout(CWnd* pParent /*=NULL*/)
	: CDialog(CAbout::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAbout)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CAbout::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAbout)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAbout, CDialog)
	//{{AFX_MSG_MAP(CAbout)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAbout message handlers

//DEL HBRUSH CAbout::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
//DEL {
//DEL 	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
//DEL 	if(nCtlColor== CTLCOLOR_STATIC)
//DEL 	m_hbrush=CreateSolidBrush(RGB(0,0,0));
//DEL 	{
//DEL 		pDC->SetBkMode(TRANSPARENT);
//DEL         //此处设置字体的颜色
//DEL 		pDC->SetTextColor((RGB(155,155,255)));
//DEL 		return m_hbrush;
//DEL 	}
//DEL 	
//DEL }
//DEL void CAbout::OnbtnEMAIL() 
//DEL {
//DEL 	::ShellExecute(NULL,"open","mailto:zhangmim_cn@sina.com",NULL,NULL,SW_SHOWNORMAL);
//DEL 	
//DEL }

BOOL CAbout::OnInitDialog() 
{
	CDialog::OnInitDialog();
	m_wndLink1.SubclassDlgItem(IDC_ADDRESS,this);
	m_wndLink2.m_link=_T("mailto:zhangmim_cn@sina.com");
	m_wndLink2.SubclassDlgItem(IDC_EMAIL,this);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}