D:/_sources/u2c_12/ControlPanel/I2cWriteBar.h
Go to the documentation of this file.00001 // Copyright (C)2006 Diolan ( http://www.diolan.com ) 00002 // 00003 // This program is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU General Public License 00005 // as published by the Free Software Foundation 00006 // 00007 // This program is distributed in the hope that it will be useful, 00008 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 // GNU General Public License for more details. 00011 00012 00013 #if !defined(AFX_I2CWRITEBAR_H__93E5D3F9_BFD2_406C_ACB5_285187DB0872__INCLUDED_) 00014 #define AFX_I2CWRITEBAR_H__93E5D3F9_BFD2_406C_ACB5_285187DB0872__INCLUDED_ 00015 00016 #if _MSC_VER > 1000 00017 #pragma once 00018 #endif // _MSC_VER > 1000 00019 // I2cWriteBar.h : header file 00020 // 00021 #include "../common/I2CBridge.h" 00023 // CI2cWriteBar dialog 00024 00025 class CI2cWriteBar : public CDialogBar 00026 { 00027 // Construction 00028 public: 00029 CI2cWriteBar(); // standard constructor 00030 BOOL Create(CWnd *pParentWnd); 00031 BOOL InitTransaction(PU2C_TRANSACTION pTransaction); 00032 void SaveCurrentValuesInHistory(); 00033 void FillSlaveList(PU2C_SLAVE_ADDR_LIST pSlaveList); 00034 void EnableControls(bool bEnable); 00035 00036 // Dialog Data 00037 //{{AFX_DATA(CI2cWriteBar) 00038 enum { IDD = IDD_I2C_WRITE }; 00039 CComboBox m_ctrlSlaveAddr; 00040 CComboBox m_ctrlMemAddr; 00041 CComboBox m_ctrlData; 00042 CString m_strSlaveAddr; 00043 CString m_strData; 00044 CString m_strMemAddr; 00045 int m_nMemAddrLen; 00046 //}}AFX_DATA 00047 00048 00049 // Overrides 00050 // ClassWizard generated virtual function overrides 00051 //{{AFX_VIRTUAL(CI2cWriteBar) 00052 protected: 00053 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00054 //}}AFX_VIRTUAL 00055 00056 00057 // Implementation 00058 protected: 00059 00060 // Generated message map functions 00061 //{{AFX_MSG(CI2cWriteBar) 00062 //}}AFX_MSG 00063 afx_msg void OnUpdateI2cWrite (CCmdUI* pCmdUI); 00064 DECLARE_MESSAGE_MAP() 00065 private: 00066 bool m_bEnableControls; 00067 }; 00068 00069 //{{AFX_INSERT_LOCATION}} 00070 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00071 00072 #endif // !defined(AFX_I2CWRITEBAR_H__93E5D3F9_BFD2_406C_ACB5_285187DB0872__INCLUDED_)
2006-2012