VisualC++课程设计报告Word文档下载推荐.docx
《VisualC++课程设计报告Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《VisualC++课程设计报告Word文档下载推荐.docx(12页珍藏版)》请在冰豆网上搜索。
staticcharTHIS_FILE[]=__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//CProp2propertypage
IMPLEMENT_DYNCREATE(CProp2,CPropertyPage)
CProp2:
:
CProp2():
CPropertyPage(CProp2:
IDD)
{
//{{AFX_DATA_INIT(CProp2)
m_football=FALSE;
m_basketball=FALSE;
m_volleyball=FALSE;
m_swim=FALSE;
//}}AFX_DATA_INIT
}
~CProp2()
voidCProp2:
DoDataExchange(CDataExchange*pDX)
CPropertyPage:
DoDataExchange(pDX);
//{{AFX_DATA_MAP(CProp2)
DDX_Check(pDX,IDC_CHECK1,m_football);
DDX_Check(pDX,IDC_CHECK2,m_basketball);
DDX_Check(pDX,IDC_CHECK3,m_volleyball);
DDX_Check(pDX,IDC_CHECK4,m_swim);
//}}AFX_DATA_MAP
BEGIN_MESSAGE_MAP(CProp2,CPropertyPage)
//{{AFX_MSG_MAP(CProp2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//CProp2messagehandlers
BOOLCProp2:
OnSetActive()
//TODO:
Addyourspecializedcodehereand/orcallthebaseclass
((CPropertySheet*)GetParent())->
SetWizardButtons(PSWIZB_BACK|PSWIZB_NEXT);
returnCPropertyPage:
OnSetActive();
//DELBOOLCProp2:
OnInitDialog()
//DEL{
//DELCPropertyPage:
OnInitDialog();
//DEL
//DEL//TODO:
Addextrainitializationhere
//DEL((CListBox*)GetDlgItem(IDC_LIST1))->
AddString("
北京"
);
天津"
上海"
//DELreturnTRUE;
//returnTRUEunlessyousetthefocustoacontrol
//DEL//EXCEPTION:
OCXPropertyPagesshouldreturnFALSE
//DEL}
LRESULTCProp2:
OnWizardNext()
UpdateData();
if(m_football||m_basketball||m_volleyball||m_swim)
returnCPropertyPage:
OnWizardNext();
else
{
MessageBox("
请选择你的兴趣爱好!
"
return-1;
}
#if!
defined(AFX_PROP1_H__978F2F2C_DDCA_4EF6_AB94_94508ED6470B__INCLUDED_)
#defineAFX_PROP1_H__978F2F2C_DDCA_4EF6_AB94_94508ED6470B__INCLUDED_
#if_MSC_VER>
1000
#pragmaonce
#endif//_MSC_VER>
//Prop1.h:
headerfile
//CProp1dialog
classCProp1:
publicCPropertyPage
DECLARE_DYNCREATE(CProp1)
//Construction
public:
CProp1();
~CProp1();
//DialogData
//{{AFX_DATA(CProp1)
enum{IDD=IDD_PROP1};
intm_occupation;
CStringm_workAddr;
//}}AFX_DATA
//Overrides
//ClassWizardgeneratevirtualfunctionoverrides
//{{AFX_VIRTUAL(CProp1)
public:
virtualBOOLOnSetActive();
virtualLRESULTOnWizardNext();
protected:
virtualvoidDoDataExchange(CDataExchange*pDX);
//DDX/DDVsupport
//}}AFX_VIRTUAL
//Implementation
protected:
//Generatedmessagemapfunctions
//{{AFX_MSG(CProp1)
virtualBOOLOnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
//MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.
#endif//!
//PropView.h:
interfaceoftheCPropViewclass
defined(AFX_PROPVIEW_H__4078ADBA_CDF5_4CB5_8354_BD7C70BEE5DB__INCLUDED_)
#defineAFX_PROPVIEW_H__4078ADBA_CDF5_4CB5_8354_BD7C70BEE5DB__INCLUDED_
classCPropView:
publicCView
//createfromserializationonly
CPropView();
DECLARE_DYNCREATE(CPropView)
//Attributes
CPropDoc*GetDocument();
//Operations
//ClassWizardgeneratedvirtualfunctionoverrides
//{{AFX_VIRTUAL(CPropView)
virtualvoidOnDraw(CDC*pDC);
//overriddentodrawthisview
virtualBOOLPreCreateWindow(CREATESTRUCT&
cs);
virtual~CPropView();
virtualvoidAssertValid()const;
virtualvoidDump(CDumpContext&
dc)const;
//Generatedmessagemapfunctions
//{{AFX_MSG(CPropView)
afx_msgvoidOnPropertysheet();
private:
intm_iOccupation;
CStringm_strWorkAddr;
BOOLm_bLike[4];
CStringm_strSalary;
#ifndef_DEBUG//debugversioninPropView.cpp
inlineCPropDoc*CPropView:
GetDocument()
{return(CPropDoc*)m_pDocument;
5.软件截图
201010492吴桐