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

📄 configuredlg.cpp

📁 基于ZIGBEE协议通讯的开关程序
💻 CPP
字号:
/*
** ============================================================================
**
** FILE
**  ConfigureDlg.cpp
**
** DESCRIPTION
**  The Configuration Dialog class itself
**
** CREATED
**  I.A.Marsden Integration UK Ltd
**
** COPYRIGHT
** Copyright 2005 Integration Associates Inc.  All rights reserved.
**
** LIMITED USE LICENSE.  By using this software, the user agrees to the terms of the 
**                       following license.  If the user does not agree to these terms, 
**                       then this software should be returned within 30 days and a full 
**                       refund of the purchase price or license fee will provided.  
**                       Integration Associates hereby grants a license to the user on the 
**                       following terms and conditions:  The user may use, copy, modify, 
**                       revise, translate, abridge, condense, expand, collect, compile, 
**                       link, recast, distribute, transform or adapt this software solely 
**                       in connection with the development of products incorporating 
**                       integrated circuits sold by Integration Associates.  Any other use 
**                       for any other purpose is expressly prohibited with the prior written 
**                       consent of Integration Associates.
**
** Any copy or modification made must satisfy the following conditions:
** 
** 1. Both the copyright notice and this permission notice appear in all copies of the software, 
**    derivative works or modified versions, and any portions thereof, and that both notices 
**    appear in supporting documentation.
**
** 2. All copies of the software shall contain the following acknowledgement: "Portions of this 
**    software are used under license from Integration Associates Inc. and are copyrighted."
**
** 3  Neither the name of Integration Associates Inc. nor any of its subsidiaries may be used 
**    to endorse or promote products derived from this software without specific prior written 
**    permission.
**
** THIS SOFTWARE IS PROVIDED BY "AS IS" AND ALL WARRANTIES OF ANY KIND, INCLUDING THE IMPLIED 
** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR USE, ARE EXPRESSLY DISCLAIMED.  THE DEVELOPER 
** SHALL NOT BE LIABLE FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.  
** THIS SOFTWARE MAY NOT BE USED IN PRODUCTS INTENDED FOR USE IN IMPLANTATION OR OTHER DIRECT 
** LIFE SUPPORT APPLICATIONS WHERE MALFUNCTION MAY RESULT IN THE DIRECT PHYSICAL HARM OR INJURY 
** TO PERSONS.  ALL SUCH IS USE IS EXPRESSLY PROHIBITED.
** ============================================================================
*/
#include "stdafx.h"
#include "lightlamp.h"
#include "ConfigureDlg.h"

/*
** ============================================================================
**
** FUNCTION NAME:
**  CConfigureDlg
**
** DESCRIPTION
**  Constructor
**
** AUTHOR
**  Ian Marsden
**
** ============================================================================
*/
CConfigureDlg::CConfigureDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CConfigureDlg::IDD, pParent)
  , s_Channel(_T(""))
  , s_PANId(_T(""))
{
}

/*
** ============================================================================
**
** FUNCTION NAME:
**  ~CConfigureDlg
**
** DESCRIPTION
**  Destructor, Reset all variables
**
** AUTHOR
**  Ian Marsden
**
** ============================================================================
*/
CConfigureDlg::~CConfigureDlg()
{
}

/*
** ============================================================================
**
** FUNCTION NAME:
**  DoDataExchange
**
** DESCRIPTION
**  Load / Unload the controls
**
** AUTHOR
**  Ian Marsden
**
** ============================================================================
*/
void CConfigureDlg::DoDataExchange(CDataExchange* pDX)
{
  CDialog::DoDataExchange(pDX);
  DDX_Text(pDX, IDC_EDIT_CHANNEL, s_Channel);
  DDX_Text(pDX, IDC_EDIT_PANID, s_PANId);
  DDX_Check(pDX, IDC_RADIO_ZC, b_ZC);
  DDX_Check(pDX, IDC_RADIO_ZR, b_ZR);
  DDX_Check(pDX, IDC_RADIO_ZED, b_ZED);
}

/*
** ============================================================================
**
** FUNCTION NAME:
**  OnInitDialog
**
** DESCRIPTION
**  On Initialisation
**
** AUTHOR
**  Ian Marsden
**
** ============================================================================
*/
BOOL CConfigureDlg::OnInitDialog()
{
	CDialog::OnInitDialog();
	return TRUE;  // return TRUE  unless you set the focus to a control
}

BEGIN_MESSAGE_MAP(CConfigureDlg, CDialog)
  ON_BN_CLICKED(IDOK, OnBnClickedOk)
END_MESSAGE_MAP()

/*
** ============================================================================
**
** FUNCTION NAME:
**  OnBnClickedOk
**
** DESCRIPTION
**  On the OK button
**
** AUTHOR
**  Ian Marsden
**
** ============================================================================
*/
void CConfigureDlg::OnBnClickedOk()
{
  OnOK();
}


⌨️ 快捷键说明

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