⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 introduction.cpp

📁 完整的汽配查询软件
💻 CPP
字号:
// Introduction.cpp : implementation file
//

#include "stdafx.h"
#include "tprod.h"
#include "Introduction.h"

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

/////////////////////////////////////////////////////////////////////////////
// CIntroduction dialog


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


void CIntroduction::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CIntroduction)
	DDX_Control(pDX, IDC_MAIL, m_mail);
	DDX_Control(pDX, IDC_HOMEPAGE, m_homepage);
	DDX_Control(pDX, IDOK, m_iok);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CIntroduction, CDialog)
	//{{AFX_MSG_MAP(CIntroduction)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CIntroduction message handlers
BOOL CIntroduction::OnInitDialog()
{
		CDialog::OnInitDialog();

	//加入的超连接
	m_homepage.SetURL(_T("http://www.tuopu.com"));
	m_homepage.SetUnderline(FALSE);	
	m_mail.SetURL(_T("mailto:tuopu@tuopu.com"));
	m_mail.SetUnderline(FALSE);	
	//显示荣誉效果框
	srand((unsigned)time(NULL));

	// 内容
	CString s;
	s = "<font color='255,255,255' face='Arial' size='12' align='center'><br><p>";
	s += "<font color='255,255,100' size='18' face='Arial' style='ui'>Introduction of Corporation</font><br><p>";
	s += "<font color='200,250,100' size='14' face='Arial'>Located  on the banks of the East Sea and the Yong River, </font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>It is in the Ningbo E. T. D. Z.and it is 1Km  away from the Beilun</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Port, the famous international deepwater pivotalentrepot; 42 Km</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>away from Lishe International Airport; it is close to the Railway</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Station and Hu-Hang-Yong Expressway. So it has the advantageous</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>geographic position and convenient air, sea and land transportation</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>network. Tuopu Group was established  in 1983, and it is a </font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>multi-elemental  enterprise majoring in the manufacture of </font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>automobile parts and collecting  research, industry and trade</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>into one body.</font><p>";

	s += "<font color='200,250,100' size='14' face='Arial'>The Group's main products are Engine mounts, Hydraulic-suspension</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Absorbers, Heat Insulation Mat& Sound Insulation Mat Interior Deco</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>rations Torsional Vibration-isolators, Rubber and Metal</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Shock-absorbers,Automobile Seals, including Control Arms, Rubber </font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>and Plastic Parts,Punch Parts, Die Casting Parts and Forging</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Aluminum Parts etc.</font><p>";

	s += "<font color='200,250,100' size='14' face='Arial'>The Group is proud to have OEM customers like FAW-Volkswagen, </font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>FAW, Shanghai GM, Chongqing Chang'an,Chang'an Suzuki and </font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Jinbei GM etc.Meanwhile, it is tapping  its international market,</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>and the good businessintegrity has been gained. </font><p>";

	s += "<font color='200,250,100' size='14' face='Arial'>Accelerate product R& D using the finite element analysis (FEA) </font><p>";

	s += "<font color='200,250,100' size='14' face='Arial'>Since the group was founded, Tuopu strongly promotes the digital</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>construction Like CAD,CAM, CAE etc. , and it has put the huge</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>amount of money to introduce design software and equipment</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>such as UG II, CATIA, ADMAS, MARC, dynamic test system,</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>machining center, it has fostered many engineers with middle and</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>senior titles.</font><p>";

	s += "<font color='200,250,100' size='14' face='Arial'>Many statistic methods and technical means are widely used,such</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>as X-R control chart, GR&R P diagram, Cause & Effect matrix,</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Poke-Yoke etc.</font><p>";

	s += "<font color='200,250,100' size='14' face='Arial'>Since Sept.1996,the Group carries out seriously ISO9000 Standard</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>in all production sites, she has get ISO9002 Approval in Mar.1997.</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>and QS9000 approval in June,VDA6.1 Certificate in March 2002.</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Computer network has been introduced to the headquarters and</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>Branches on the management of Qualitysystem,materials,human</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>resources, personnel, products design,,manufacture,management,</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>sales, and finances.</font><p>";

	s += "<font color='200,250,100' size='14' face='Arial'>Since 2002, the company has  run strictly in  compliance with</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>ISO14000 and established the environmental management system.</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>We will spare no effort  to shoulder the social responsibilities of</font><br>";
	s += "<font color='200,250,100' size='14' face='Arial'>environmental protection.</font><p>";
	s += "<font color='200,250,100' size='14' face='Arial'>The End, thank you!                                                </font><p>";
	s += "<font color='0,255,250' size='20' face='Arial'>                                   Tuopu Group Co.,Ltd</font>";

	//格式化并加入字符串
	m_wndCredits.FormatDataString(s);
	
	// 绘制闪电效果
	m_wndCredits.m_pBackgroundPaint = CIntroduction::DrawCreditsBackground;
	m_wndCredits.m_dwBackgroundPaintLParam = TRUE;

	// 默认背景置黑色
	m_wndCredits.m_crInternalTransparentColor = RGB(255,255,255);

	//滚动速度
	m_wndCredits.m_nTimerSpeed = 40;

	//用户拖拉滚动
	m_wndCredits.m_bCanScroll = TRUE;
	
	// 创建荣誉框
	m_wndCredits.Create(WS_EX_CLIENTEDGE,WS_VISIBLE|WS_CHILD,IDC_DYCREDITS,this,0,0,0);

	
	return TRUE;
}

void CIntroduction::DrawCreditsBackground(CDC *pDC, RECT rect, BOOL bAnimate, DWORD lParam)
{
	static int on1,on2,oon1,oon2;
	pDC->FillSolidRect(&rect,0x00000000);
	
	if(bAnimate || (!lParam)) // return now if we are not supposed to do the animation
		return;

	int n1,n2;
	n1 = rand()*200/RAND_MAX-100;
	n2 = rand()*200/RAND_MAX-100;

	// 2/10 chance of (prehaps) making some wild stuff on one of the curves
	if(rand() < RAND_MAX/10)
		n1 = rand()*400/RAND_MAX-200;
	else if(rand() < RAND_MAX/10)
		n2 = rand()*400/RAND_MAX-200;

	POINT points1[4] = {
		rect.right,0,
		(rect.right-rect.left)/2+n1,(rect.bottom-rect.top)/2,
		(rect.right-rect.left)/2,(rect.bottom-rect.top)/2-n1,
		0,rect.bottom
	};
	POINT points2[4] = {
		0,0,
		(rect.right-rect.left)/2-n2,(rect.bottom-rect.top)/2,
		(rect.right-rect.left)/2,(rect.bottom-rect.top)/2-n2,
		rect.right,rect.bottom
	};
	POINT opoints1[4] = {
		rect.right,0,
		(rect.right-rect.left)/2+on1,(rect.bottom-rect.top)/2,
		(rect.right-rect.left)/2,(rect.bottom-rect.top)/2-on1,
		0,rect.bottom
	};
	POINT opoints2[4] = {
		0,0,
		(rect.right-rect.left)/2-on2,(rect.bottom-rect.top)/2,
		(rect.right-rect.left)/2,(rect.bottom-rect.top)/2-on2,
		rect.right,rect.bottom
	};
	POINT oopoints1[4] = {
		rect.right,0,
		(rect.right-rect.left)/2+oon1,(rect.bottom-rect.top)/2,
		(rect.right-rect.left)/2,(rect.bottom-rect.top)/2-oon1,
		0,rect.bottom
	};
	POINT oopoints2[4] = {
		0,0,
		(rect.right-rect.left)/2-oon2,(rect.bottom-rect.top)/2,
		(rect.right-rect.left)/2,(rect.bottom-rect.top)/2-oon2,
		rect.right,rect.bottom
	};

	CPen wpen(PS_SOLID,1,RGB(150,220,255));
	CPen pen(PS_SOLID,2,RGB(50,100,255));
	CPen open(PS_SOLID,1,RGB(50,100,255));
	CPen oopen(PS_SOLID,1,RGB(0,30,150));
	CPen *pOldPen = pDC->SelectObject(&oopen);
	pDC->PolyBezier(oopoints1,4);
	pDC->PolyBezier(oopoints2,4);
	pDC->SelectObject(&open);
	pDC->PolyBezier(opoints1,4);
	pDC->PolyBezier(opoints2,4);
	pDC->SelectObject(&pen);
	pDC->PolyBezier(points1,4);
	pDC->PolyBezier(points2,4);
	pDC->SelectObject(&wpen);
	pDC->PolyBezier(points1,4);
	pDC->PolyBezier(points2,4);
	pDC->SelectObject(pOldPen);

	oon1 = on1;
	oon2 = on2;
	on1 = n1;
	on2 = n2;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -