C++源码(PI).pdf

上传人:b****3 文档编号:3218883 上传时间:2022-11-20 格式:PDF 页数:13 大小:104.83KB
下载 相关 举报
C++源码(PI).pdf_第1页
第1页 / 共13页
C++源码(PI).pdf_第2页
第2页 / 共13页
C++源码(PI).pdf_第3页
第3页 / 共13页
C++源码(PI).pdf_第4页
第4页 / 共13页
C++源码(PI).pdf_第5页
第5页 / 共13页
点击查看更多>>
下载资源
资源描述

C++源码(PI).pdf

《C++源码(PI).pdf》由会员分享,可在线阅读,更多相关《C++源码(PI).pdf(13页珍藏版)》请在冰豆网上搜索。

C++源码(PI).pdf

C+Source(PI)DlgXSINFO.cpp:

implementationfile#includestdafx.h#includea1.h#includeDlgXSINFO.h#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE=_FILE_;#endifCDlgXSINFOdialogCDlgXSINFO:

CDlgXSINFO(CWndpParent=NULL):

CDialog(CDlgXSINFO:

IDD,pParent)AFX_DATA_INIT(CDlgXSINFO)NOTE:

theClassWizardwilladdmemberinitializationhereAFX_DATA_INITm_tabXs=newCTabXS(15);xs_ph=;voidCDlgXSINFO:

DoDataCanExchange(CDataExchangepDX)CDialog:

DoDataCanExchange(pDX);AFX_DATA_MAP(CDlgXSINFO)NOTE:

theClassWizardwilladdDDXandDDVcallshereAFX_DATA_MAPBEGIN_MESSAGE_MAP(CDlgXSINFO,CDialog)AFX_MSG_MAP(CDlgXSINFO)AFX_MSG_MAPEND_MESSAGE_MAP()CDlgXSINFOmessagehandlersvoidCDlgXSINFO:

OnOK()TODO:

Addextravalidationhereinti=m_tabXs-m_list-GetSelectionMark();this-m_tabXs-m_edits0.GetWindowText(xs_ph);xs_ph=this-m_strdataPh=m_tabXs-m_list-GetItemText(i,0);this-m_strdataId=m_tabXs-m_list-GetItemText(i,1);this-m_strdataName=m_tabXs-m_list-GetItemText(i,2);this-m_strdataYsf=m_tabXs-m_list-GetItemText(i,3);this-m_strdataSsf=m_tabXs-m_list-GetItemText(i,4);this-m_strdataWsf=m_tabXs-m_list-GetItemText(i,5);this-m_strdataJsfs=m_tabXs-m_list-GetItemText(i,11);jq=m_tabXs-m_list-GetItemText(i,12);CDialog:

OnOK();BOOLCDlgXSINFO:

OnInitDialog()CDialog:

OnInitDialog();CRectrect;this-GetClientRect(rect);rect.top=20;rect.bottom-=60;this-m_tabXs-Create(WS_CHILD|WS_VISIBLE|WS_TABSTOP,rect,this,ID_TABCTRL_YAOPIN);returnTRUE;returnTRUEunlessyousetthefocustoacontrolEXCEPTION:

OCXPropertyPagesshouldreturnFALSEBOOLCDlgXSINFO:

DestroyWindow()returnCDialog:

DestroyWindow();CDlgXSINFO:

CDlgXSINFO()deletethis-m_tabXs;m_tabXs=NULL;ConferenceQuery.cpp:

implementationfile#includestdafx.h#includecapture.h#includeConferenceQuery.h#includeDataManage.h#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE=_FILE_;#endifCConferenceQuerydialogexternCDataManagedataManage;CConferenceQuery:

CConferenceQuery(CWndpParent=NULL):

CDialog(CConferenceQuery:

IDD,pParent)AFX_DATA_INIT(CConferenceQuery)AFX_DATA_INITvoidCConferenceQuery:

DoDataCanExchange(CDataExchangepDX)CDialog:

DoDataCanExchange(pDX);AFX_DATA_MAP(CConferenceQuery)DoDDX_DataCanControl(pDX,IDC_EDIT1,m_value);DoDDX_DataCanControl(pDX,IDC_COMBO1,m_field);DoDDX_DataCanControl(pDX,IDC_BUTTON1,m_query);DoDDX_DataCanControl(pDX,IDC_DATAGRID2,m_dbgrid);AFX_DATA_MAPBEGIN_MESSAGE_MAP(CConferenceQuery,CDialog)AFX_MSG_MAP(CConferenceQuery)ON_BN_CLICKED(IDC_BUTTON1,OnButton1)AFX_MSG_MAPEND_MESSAGE_MAP()CConferenceQuerymessagehandlersvoidCConferenceQuery:

OnOK()查询TabKC.h:

interfacefortheCTabKCclass.#if!

defined(AFX_TABKC_H_1D6C1B7F_8811_4980_9615_A9C92CDA69EA_INCLUDED_)#defineAFX_TABKC_H_1D6C1B7F_8811_4980_9615_A9C92CDA69EA_INCLUDED_#if_MSC_VER1000#pragmaonce#endif_MSC_VER1000#includeBaseTabCtrl1.h#includeDataKC.hclassCTabKC:

publicCBaseTabCtrlpublic:

intShowListChaXun(intshow);CTabKC(ints_n);virtualCTabKC();boolInitBaseInfo();boolInitValues();boolInitSelf();boolInitList();boolPrepareTables(CString&output,CString&input);CStringPrepareSQL();voidSetKey(intmark);voidSetTheBaseInfoFocus();voidSetTheFocus();boolEnableBaseInfo(boolenabled);intShowBaseInfo(intshow);enumID_YUANGONG_RQ=217;enumID_LEVER_UP=218,ID_LEVER_DOWN=219;CButtonm_btnUp;CButtonm_btnDown;CDataKCm_dataKc;protected:

AFX_MSG(CTabXSTH)afx_msgvoidOnSelchange(NMHDRpNMHDR,LRESULTpResult);afx_msgvoidOnChaXun();afx_msgvoidOnLeverUp();afx_msgvoidOnLeverDown();AFX_MSGDECLARE_MESSAGE_MAP();#endif!

defined(AFX_TABKC_H_1D6C1B7F_8811_4980_9615_A9C92CDA69EA_INCLUDED_)C+SourcePartTwoAFX_INCLUDES()#includemschart.hAFX_INCLUDES#if!

defined(AFX_DPAGE2_H_C018636A_2C3D_4559_8555_82A20DA60DB8_INCLUDED_)#defineAFX_DPAGE2_H_C018636A_2C3D_4559_8555_82A20DA60DB8_INCLUDED_#includeRxRecordset.hAddedbyClassView#if_MSC_VER1000#pragmaonce#endif_MSC_VER1000DPage2.h:

headerfileCDPage2dialogclassCDPage2:

publicCDialogConstructionpublic:

voidSetRecordset(RxRecordsetRrst,CStringsGroupField=名称,CStringNumberHarder=合计数量,CStringUint=计量单位,intUnitStyle=0);CDPage2(CWndpParent=NULL);standardconstructorDialogDataAFX_DATA(CDPage2)enumIDD=IDD_PAGE2;CMSChartm_Chart;AFX_DATAOverridesClassWizardgeneratedvirtualfunctionoverridesAFX_VIRTUAL(CDPage2)protected:

virtualvoidDoDataExchange(CDataExchangepDX);DDXDDVsupportAFX_VIRTUALImplementationprotected:

GeneratedmessagemapfunctionsAFX_MSG(CDPage2)virtualBOOLOnInitDialog();AFX_MSGDECLARE_MESSAGE_MAP()private:

RxRecordsetrst;AFX_INSERT_LOCATIONMicrosoftVisualC+willinsertadditionaldeclarationsimmediatelybeforethepreviousline.#endif!

defined(AFX_DPAGE2_H_C018636A_2C3D_4559_8555_82A20DA60DB8_INCLUDED_)C+SourcePartThree#if!

defined(AFX_MYFRAME_H_8223E71A_07B2_40C8_B171_32EDDB543969_INCLUDED_)#defineAFX_MYFRAME_H_8223E71A_07B2_40C8_B171_32EDDB543969_INCLUDED_#if_MSC_VER1000#pragmaonce#endif_MSC_VER1000MyFrame.h:

headerfileCMyFrameframeclassCMyFrame:

publicCFrameWndDECLARE_DYNCREATE(CMyFrame)public:

CMyFrame();protectedconstructor

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

当前位置:首页 > 经管营销 > 财务管理

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

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