📄 lightlampdlg.h
字号:
/*
** ============================================================================
**
** FILE
** lightlampDlg.h
**
** DESCRIPTION
** main header file for the Lighting Lamp Dialog
**
** 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.
** ============================================================================
*/
#pragma once
#include "afxwin.h"
#include "ZBDLLApi.h"
#include "ZigBeeIf.h"
#include "ConfigureDlg.h"
// State defines
#define STATE_START 0x00
//#define STATE_DESC1 0x01
//#define STATE_DESC2 0x02
#define STATE_RUNNING 0x10
#define STATE_FAIL 0xFE
// ClightlampDlg dialog
class ClightlampDlg : public CDialog
{
// Construction
public:
ClightlampDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_LIGHTLAMP_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
// Protected variables
HICON m_hIcon;
CBitmap nBitmapOff;
CBitmap nBitmapOn;
// Protected functions
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg void OnDestroy();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg LRESULT ZDO_SET_confirm(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT ZDO_RESET_confirm(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT ZDO_START_confirm(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT ZDO_END_DEVICE_BIND_confirm(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT AF_INDIRECT_indication(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT ZDO_NLME_SYNC_confirm(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
public:
// Public variables
CStatic m_Status; // The status message
CZigBeeIf* hZigBee; // The ZigBee If
UCHAR OperatingState; // State variable
UCHAR ScanChannels[4]; // The Scan Mask
UCHAR PANId[2]; // The PANId
UCHAR DevType; // The Device Type to use
CStatic m_Lamp; // The picture of the lamp
// Public Functions
afx_msg void OnBnClickedButtonBind();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -