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

📄 cominfodlg.cpp

📁 快餐管理系统 这个快餐管理系统,实现了实际数据库管理功能,能给相关开发的朋友提供很好的借鉴
💻 CPP
字号:
// ComInfoDlg.cpp : implementation file
//

#include "stdafx.h"
//#include "CSpreadSheet.h"
#include "FastSellStore.h"
#include "ComInfoDlg.h"
// 

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

//extern class CSpreadSheet;
/////////////////////////////////////////////////////////////////////////////
// CComInfoDlg dialog


CComInfoDlg::CComInfoDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CComInfoDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CComInfoDlg)
	m_Address = _T("");
	m_Infor = _T("");
	m_Contact = _T("");
	m_Fax = _T("");
	m_Cell = _T("");
	m_Tel = _T("");
	m_wwwInfor = _T("");
	//}}AFX_DATA_INIT
}


void CComInfoDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CComInfoDlg)
	DDX_Text(pDX, IDC_ADDR_INFOR_STATIC, m_Address);
	DDX_Text(pDX, IDC_COM_INFOR_STATIC, m_Infor);
	DDX_Text(pDX, IDC_CONTACT_INFOR_STATIC, m_Contact);
	DDX_Text(pDX, IDC_FAX_INFOR_STATIC, m_Fax);
	DDX_Text(pDX, IDC_SELL_TEL_INFOR_STATIC, m_Cell);
	DDX_Text(pDX, IDC_TEL_INFOR_STATIC, m_Tel);
	DDX_Text(pDX, IDC_WWW_INFOR_STATIC, m_wwwInfor);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CComInfoDlg message handlers

BOOL CComInfoDlg::OnInitDialog()
{
//	CSpreadSheet SS(CGlobal::sExcFilePath,"IC模块类");

	int iRow = 2; // 第二行 ++ 7行
	int iColumn = 7; // 第七列 

	/* 读出单元格的内容 */
/*	CStringArray sCellArray;
	for(iRow=2; iRow < 9; ++iRow)
	{
		CString tempCell;
		if(!SS.ReadCell(tempCell,iColumn,iRow))
		{
			AfxMessageBox(SS.GetLastError());
			return false;
		}

		sCellArray.Add(tempCell);
	}

	::SetDlgItemText(this->m_hWnd,IDC_COM_INFOR_STATIC,sCellArray.GetAt(0)); // 公司信息
	::SetDlgItemText(this->m_hWnd,IDC_CONTACT_INFOR_STATIC,sCellArray.GetAt(1)); // 联系人信息
	::SetDlgItemText(this->m_hWnd,IDC_TEL_INFOR_STATIC,sCellArray.GetAt(2)); // 受机信息
	::SetDlgItemText(this->m_hWnd,IDC_FAX_INFOR_STATIC,sCellArray.GetAt(3)); // 传真
	::SetDlgItemText(this->m_hWnd,IDC_SELL_TEL_INFOR_STATIC,sCellArray.GetAt(4)); // 电话
	::SetDlgItemText(this->m_hWnd,IDC_ADDR_INFOR_STATIC,sCellArray.GetAt(5)); // 地址
	::SetDlgItemText(this->m_hWnd,IDC_WWW_INFOR_STATIC,sCellArray.GetAt(6)); // 网址
*/
	return true;
}

⌨️ 快捷键说明

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