Visual C++ Programming Class1group3.docx

上传人:b****6 文档编号:6267421 上传时间:2023-01-05 格式:DOCX 页数:38 大小:635.33KB
下载 相关 举报
Visual C++ Programming Class1group3.docx_第1页
第1页 / 共38页
Visual C++ Programming Class1group3.docx_第2页
第2页 / 共38页
Visual C++ Programming Class1group3.docx_第3页
第3页 / 共38页
Visual C++ Programming Class1group3.docx_第4页
第4页 / 共38页
Visual C++ Programming Class1group3.docx_第5页
第5页 / 共38页
点击查看更多>>
下载资源
资源描述

Visual C++ Programming Class1group3.docx

《Visual C++ Programming Class1group3.docx》由会员分享,可在线阅读,更多相关《Visual C++ Programming Class1group3.docx(38页珍藏版)》请在冰豆网上搜索。

Visual C++ Programming Class1group3.docx

VisualC++ProgrammingClass1group3

VisualC++PROJECT

ECJTU

StudentNameStudentId

ZhangWanZhe20082110080109

LiuZhou20082110080110

XuShiPeng20082110080111

LuoXiaoZhen20082110080112

StudentClass

Class1Grade2008

StudentMajor

Software&ElectronicsAutomationEngineering

Certificate

Thistocertifythatthefollowingstudents

1、Mr.ZhangWanZheandIDNO.is20082110080109

2、Mr.LiuZhouandIDNO.is20082110080110

3、Mr.XuShiPengandIDNO.is20082110080111

4、Mr.LuoXiaoZhenandIDNO.is20082110080112

DonethisprojectundertheguidanceandsupervisionofMR.RAVI

anditissubmittedtotheEastChinaJiaoTongUniversityaspartial

fulfillmentofSoftwareandElectronicsAutomationEngineering.

SignatureoftheGuide

Content

1.Acknowledgement------------------------------------------------------4

2.HardwareandSoftwareRequiredDevelopingtheProject---------5

3.PrintScreenofDevelop----------------------------------------------5

4.PrintScreenofRelease----------------------------------------------12

5.HeaderFileCode-------------------------------------------------------19

Class1_VC3.h-------------------------------------------------19

Class1_VC3Dlg.h-----------------------------------------------20

Resource.h-------------------------------------------------21

StdAfx.h----------------------------------------------------22

6.SourceFileCode-------------------------------------------------------23

StdAfx.cpp-------------------------------------------------23

Class1_VC3.cpp-----------------------------------------------23

Class1_VC3Dlg.cpp---------------------------------------------24

7.References---------------------------------------------------------------34

2.Acknowledgement

ThisisaprojectwritteninVC++.VCbasedonC,C++language,themaincomponentisdrivenMFCsystemsandhighlygearedprogrammingtool,itwithadvanced,andlow-levellanguagesofreasonableness,powerful,flexible,efficient,almostsayVCinWindowsplatformsomnipotent.Biggestweaknessisdevelopingefficiencyisnothigh.

Aswecanseefromthefiguretherearefouractionbars,twobuttonsandthreeslidersinthepropertysheet.Thefirstactionbarcontrolstheshapeofthepicture.Itcontainslinecircleellipserectangleandroundrectangle.Thesecondcontrolthegraphicedge.Itcontainsdashsoliddotanddashdot.Thethirdcontrolstheinnerlinewhichcontainscrossdiagonalsolidbrush.Thelastisthecolorofpen;itincludesblackredyellowblueandgreen.Whenthefigurechoosestheline,thesliderdoesn’twork,ifwechoosetheothersfigure,thesliderwillwork,theycontrolthecoloroftheinnerline.Threeprimarycolorscorrespondtothethreesliders.Andthecoloroftheedgelineisonlyjudgedbythecolorofpen.whenwechoosealltheoptions,thelastprocedureistodisplaygraphics,nowwepushtheplotbutton,thepicturewillbeshowed,anotherbuttonisexit,whenwepushit,thesheetwillbeclose.Allofthesearethewholeprocessofoperation.

2.HardwareandSoftwareRequiredDevelopingtheProject

Hardware

Processor:

Intel(R)Core(TM)2DuoCPUT8100@2GHz

Ram:

2GBwith800MHz

DisplayAdapter:

LEDQVGA

Monitor:

CMO1441(14Inch)

Keyboard:

104keys

Software

MicrosoftVisualC++Version:

6.0

Operatingsystem:

WindowsXPProfessional

Database:

Accessversion

ProgrammingLanguage:

VC++

IDE:

Visualstudio

3.PrintScreenofDevelop

4.PrintScreenofRelease

5.HeaderFileCode

//Class1_VC3.h:

mainheaderfilefortheCLASS1_VC3application

#if!

defined(AFX_CLASS1_VC3_H__69BE1DE0_5C82_4CF1_9676_5427D9DE7C48__INCLUDED_)

#defineAFX_CLASS1_VC3_H__69BE1DE0_5C82_4CF1_9676_5427D9DE7C48__INCLUDED_

#if_MSC_VER>1000

#pragmaonce

#endif//_MSC_VER>1000

#ifndef__AFXWIN_H__

#errorinclude'stdafx.h'beforeincludingthisfileforPCH

#endif

#include"resource.h"//mainsymbols

//CClass1_VC3App:

//SeeClass1_VC3.cppfortheimplementationofthisclass

classCClass1_VC3App:

publicCWinApp

{

public:

CClass1_VC3App();

//Overrides

//ClassWizardgeneratedvirtualfunctionoverrides

//{{AFX_VIRTUAL(CClass1_VC3App)

public:

virtualBOOLInitInstance();

//}}AFX_VIRTUAL

//Implementation

//{{AFX_MSG(CClass1_VC3App)

//NOTE-theClassWizardwilladdandremovememberfunctionshere.

//DONOTEDITwhatyouseeintheseblocksofgeneratedcode!

//}}AFX_MSG

DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}

//MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.

#endif

//!

defined(AFX_CLASS1_VC3_H__69BE1DE0_5C82_4CF1_9676_5427D9DE7C48__INCLUDED_)

//Class1_VC3Dlg.h:

headerfile

//

#if!

defined(AFX_CLASS1_VC3DLG_H__9618CA64_11C0_4CA4_8758_DDD59CAD5FFA__INCLUDED_)

#defineAFX_CLASS1_VC3DLG_H__9618CA64_11C0_4CA4_8758_DDD59CAD5FFA__INCLUDED_

#if_MSC_VER>1000

#pragmaonce

#endif//_MSC_VER>1000

/////////////////////////////////////////////////////////////////////////////

//CClass1_VC3Dlgdialog

classCClass1_VC3Dlg:

publicCDialog

{

//Construction

public:

CClass1_VC3Dlg(CWnd*pParent=NULL);//standardconstructor

//DialogData

//{{AFX_DATA(CClass1_VC3Dlg)

enum{IDD=IDD_CLASS1_VC3_DIALOG};

CScrollBarm_B;

CScrollBarm_G;

CScrollBarm_R;

CListBoxm_xz;

CComboBoxm_bys;

intm_xx;

intm_tclx;

intm_r;

intm_g;

intm_b;

//}}AFX_DATA

//ClassWizardgeneratedvirtualfunctionoverrides

//{{AFX_VIRTUAL(CClass1_VC3Dlg)

protected:

virtualvoidDoDataExchange(CDataExchange*pDX);//DDX/DDVsupport

//}}AFX_VIRTUAL

//Implementation

protected:

HICONm_hIcon;

//Generatedmessagemapfunctions

//{{AFX_MSG(CClass1_VC3Dlg)

virtualBOOLOnInitDialog();

afx_msgvoidOnSysCommand(UINTnID,LPARAMlParam);

afx_msgvoidOnPaint();

afx_msgHCURSOROnQueryDragIcon();

afx_msgvoidOnButton2();

afx_msgvoidOnButtonPlot();

afx_msgvoidOnHScroll(UINTnSBCode,UINTnPos,CScrollBar*pScrollBar);

afx_msgvoidOnChangeEditR();

afx_msgvoidOnChangeEditG();

afx_msgvoidOnChangeEditB();

//}}AFX_MSG

DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}

//MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.

#endif

//!

defined(AFX_CLASS1_VC3DLG_H__9618CA64_11C0_4CA4_8758_DDD59CAD5FFA__INCLUDED_)

//Resorce.h

//{{NO_DEPENDENCIES}}

//MicrosoftDeveloperStudiogeneratedincludefile.

//UsedbyClass1_VC3.rc

//

#defineIDM_ABOUTBOX0x0010

#defineIDD_ABOUTBOX100

#defineIDS_ABOUTBOX101

#defineIDD_CLASS1_VC3_DIALOG102

#defineIDR_MAINFRAME128

#defineIDC_COMBO11000

#defineIDC_LIST11002

#defineIDC_RADIO11003

#defineIDC_RADIO21004

#defineIDC_RADIO31005

#defineIDC_RADIO41006

#defineIDC_RADIO51007

#defineIDC_RADIO61008

#defineIDC_RADIO71009

#defineIDC_RADIO81010

#defineIDC_BUTTON11011

#defineIDC_BUTTON21012

#defineIDC_SCROLLBAR11013

#defineIDC_SCROLLBAR21014

#defineIDC_SCROLLBAR31015

#defineIDC_EditR1016

#defineIDC_EditG1019

#defineIDC_EditB1020

//Nextdefaultvaluesfornewobjects

//

#ifdefAPSTUDIO_INVOKED

#ifndefAPSTUDIO_READONLY_SYMBOLS

#define_APS_NEXT_RESOURCE_VALUE129

#define_APS_NEXT_COMMAND_VALUE32771

#define_APS_NEXT_CONTROL_VALUE1002

#define_APS_NEXT_SYMED_VALUE101

#endif

#endif

//StdAfx.h:

includefileforstandardsystemincludefiles,

//orprojectspecificincludefilesthatareusedfrequently,butarechangedinfrequently

#if!

defined(AFX_STDAFX_H__CAFD070F_7E41_4F1F_9E81_C728E1735467__INCLUDED_)

#defineAFX_STDAFX_H__CAFD070F_7E41_4F1F_9E81_C728E1735467__INCLUDED_

#if_MSC_VER>1000

#pragmaonce

#endif//_MSC_VER>1000

#defineVC_EXTRALEAN//Excluderarely-usedstufffromWindowsheaders

#include//MFCcoreandstandardcomponents

#include//MFCextensions

#include//MFCsupportforInternetExplorer4CommonControls

#ifndef_AFX_NO_AFXCMN_SUPPORT

#include//MFCsupportforWindowsCommonControls

#endif//_AFX_NO_AFXCMN_SUPPORT

 

//{{AFX_INSERT_LOCATION}}

//MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.

#endif

//!

defined(AFX_STDAFX_H__CAFD070F_7E41_4F1F_9E81_C728E1735467__INCLUDED_)

6.SourceFileCode

//StdAfx.cpp:

sourcefilethatincludesjustthestandardincludes

//Class1_VC3.pchwillbethepre-compiledheader

//stdafx.objwillcontainthepre-compiledtypeinformation

#include"stdafx.h"

//Class1_VC3.cpp:

Definestheclassbehaviorsfortheapplication.

//

#include"stdafx.h"

#include"Class1_VC3.h"

#include"Class1_VC3Dlg.h"

#ifdef_DEBUG

#definenewDEBUG_NEW

#undefTHIS_FILE

staticcharTHIS_FILE[]=__FILE__;

#endif

/////////////////////////////////////////////////////////////////////////////

//CClass1_VC3App

BEGIN_MESSAGE_MAP(CClass1_VC3App,CWinApp)

//{{AFX_MSG_MAP(CClass1_VC3App)

//NOTE-theClassWizardwilladdandremovemappingmacroshere.

//DONOTEDITwhatyouseeintheseblocksofgeneratedcode!

//}}AFX_MSG

ON_COMMAND(ID_HELP,CWinApp:

:

OnHelp)

END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////

//CClass1_VC3Appconstruction

CClass1_VC3App:

:

CClass1_VC3App()

{

//TODO:

addconstructioncodehere,

//PlaceallsignificantinitializationinInitInstance

}

/////////////////////////////////////////////////////////////////////////////

//TheoneandonlyCClass1_VC3Appobject

CClass1_VC3ApptheApp;

/////////////////////////////////////////////////////////////////////////////

//CClass1_VC3Appinitialization

BOOLCClass1_VC3App:

:

InitInstance()

{

//Standardinitialization

//Ifyouarenotusingthesefeaturesandwishtored

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 职业教育 > 职业技术培训

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1