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

📄 magic2410dlg.cpp

📁 周立功WinCE光盘资料
💻 CPP
字号:
// Magic2410Dlg.cpp : implementation file
//

#include "stdafx.h"
#include "Magic2410.h"
#include "Magic2410Dlg.h"

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

extern CRITICAL_SECTION critical_section_iic;
/////////////////////////////////////////////////////////////////////////////
// CMagic2410Dlg dialog

CMagic2410Dlg::CMagic2410Dlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMagic2410Dlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMagic2410Dlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CMagic2410Dlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMagic2410Dlg)
	DDX_Control(pDX, IDC_TAB, m_tab);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CMagic2410Dlg, CDialog)
	//{{AFX_MSG_MAP(CMagic2410Dlg)
	ON_WM_DESTROY()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMagic2410Dlg message handlers

BOOL CMagic2410Dlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	// TODO: Add extra initialization here
	m_tab.AddPage (_T("GPIO"),&m_BeepBox,IDD_DLGBEEP_DIALOG);
	m_tab.AddPage (_T("CAT1025"),&m_Cat1025Box,IDD_DLGCAT1025_DIALOG);
	m_tab.AddPage (_T("ZLG7290"),&m_7290Box,IDD_DLG7290_DIALOG);
	m_tab.AddPage (_T("ADC"),&m_ADCBox,IDD_DLGADC_DIALOG);
	m_tab.AddPage (_T("DCMotor"),&m_PWMSinBox,IDD_DLGPWMSIN_DIALOG);
	m_tab.AddPage (_T("SDMMC"),&m_SDMMCBox,IDD_DLGSDMMC_DIALOG);
	m_tab.AddPage (_T("GPRSMSG"),&m_GPRSMSGBox,IDD_GPRSMSG_DIALOG);
	m_tab.AddPage (_T("SerialPoart"),&m_SerialBox,IDD_DLGSERIAL_DIALOG);
	m_tab.AddPage (_T("UDP"),&m_UDPBox,IDD_DLGUDP_DIALOG);
	m_tab.AddPage (_T("TCP"),&m_TCPBox,IDD_DLGTCP_DIALOG);
	//m_tab.AddPage (_T("RS485"),&m_RS485Box,IDD_DLGRS485_DIALOG);
	
	m_tab.Show ();
	InitializeCriticalSection(&critical_section_iic);

	return TRUE;  // return TRUE  unless you set the focus to a control
}


void CMagic2410Dlg::OnDestroy() 
{
	CDialog::OnDestroy();
	
	// TODO: Add your message handler code here
	DeleteCriticalSection(&critical_section_iic);
	
}

⌨️ 快捷键说明

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