Base.Dlg.cpp 程序 : #include "stdafx.h" #include "MyPos.h" #include "BaseDlg.h" #include "MaterielDlg.h" #include "ClassDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CBaseDlg dialog CBaseDlg::CBaseDlg(CWnd* pParent /*=NULL*/) : CDialog(CBaseDlg::IDD, pParent) { //{{AFX_DATA_INIT(CBaseDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CBaseDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CBaseDlg) DDX_Control(pDX, IDC_TAB_BASE, m_oTabBase); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CBaseDlg, CDialog) //{{AFX_MSG_MAP(CBaseDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CBaseDlg message handlers BOOL CBaseDlg::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here m_oTabBase.AddPage(" 商品类别 ", &m_oClassdlg, IDD_DIALOG_CLASS); m_oTabBase.AddPage(" 商品资料 ", &m_oMaterieldlg, IDD_DIALOG_MA TERIEL); m_oTabBase.AddPage(" 付款方式 ", &m_oPaymodedlg, IDD_DIALOG_PAYMODE); m_oTabBase.Show(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } CallDlg.cpp 程序: #include "stdafx.h" #include "MyPos.h" #include "CallDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CCallDlg dialog extern CMyPosApp theApp; CCallDlg::CCallDlg(CWnd* pParent /*=NULL*/) : CDialog(CCallDlg::IDD, pParent) { //{{AFX_DATA_INIT(CCallDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CCallDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CCallDlg) DDX_Control(pDX, IDC_STATIC_CALL, m_oCallstatic); DDX_Control(pDX, IDC_EDIT_CALLBILLID, m_oCallbillid); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CCallDlg, CDialog) //{{AFX_MSG_MAP(CCallDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CCallDlg message handlers void CCallDlg::OnOK() { if(dowhat=="imhappy") { theApp.scallid=""; m_oCallbillid.GetWindowText(theApp.scallid); } if(dowhat=="pleased") m_oCallbillid.GetWindowText(dowhat); CDialog::OnOK(); } BOOL CCallDlg::OnInitDialog() { CDialog::OnInitDialog(); if(dowhat=="pleased") m_oCallstatic.SetWindowText(" 请输入桌号: "); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } CheckDlg.cpp 程序: #include "stdafx.h" #include "MyPos.h" #include "CheckDlg.h" #include "PosDlg.h"
- 粉丝: 3
- 资源: 5
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python的pyqt5写的图书管理系统期末大作业源码带文档设计.zip
- pcff_interface_v1_5.off
- apk.tw_LineLite_v8a_v.2.17.1_sign.apk
- Elasticsearch实战:构建高效搜索系统的秘诀.zip
- HTML+CSS+JS网页设计:从入门到精通.zip
- 数据库课程设计:从理论到实践的全面指南.zip
- Python闭包:深入理解与应用场景解析.zip
- Win64OpenSSL-3-3-0.exe
- 课高分程设计-基于C++实现的民航飞行与地图简易管理系统-南京航空航天大学
- 航天器遥测数据故障检测系统python源码+文档说明+数据库(课程设计)