D:/_sources/u2c_12/ControlPanel/I2cReadBar.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_I2CREADBAR_H__9F4BE076_3442_456D_BA6B_6870A52DE4E3__INCLUDED_) 00014 #define AFX_I2CREADBAR_H__9F4BE076_3442_456D_BA6B_6870A52DE4E3__INCLUDED_ 00015 00016 #if _MSC_VER > 1000 00017 #pragma once 00018 #endif // _MSC_VER > 1000 00019 // I2cReadBar.h : header file 00020 // 00021 #include "../common/I2CBridge.h" 00023 // CI2cReadBar dialog 00024 00025 class CI2cReadBar : public CDialogBar 00026 { 00027 // Construction 00028 public: 00029 CI2cReadBar(); // 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 // Dialog Data 00036 //{{AFX_DATA(CI2cReadBar) 00037 enum { IDD = IDD_I2C_READ }; 00038 CComboBox m_ctrlSlaveAddr; 00039 CComboBox m_ctrlMemAddr; 00040 CString m_strMemAddr; 00041 int m_nMemAddrLen; 00042 CString m_strSlaveAddr; 00043 int m_Length; 00044 //}}AFX_DATA 00045 00046 00047 // Overrides 00048 // ClassWizard generated virtual function overrides 00049 //{{AFX_VIRTUAL(CI2cReadBar) 00050 protected: 00051 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00052 //}}AFX_VIRTUAL 00053 00054 // Implementation 00055 protected: 00056 00057 // Generated message map functions 00058 //{{AFX_MSG(CI2cReadBar) 00059 // NOTE: the ClassWizard will add member functions here 00060 //}}AFX_MSG 00061 afx_msg void OnUpdateI2cRead (CCmdUI* pCmdUI); 00062 00063 DECLARE_MESSAGE_MAP() 00064 private: 00065 bool m_bEnableControls; 00066 }; 00067 00068 //{{AFX_INSERT_LOCATION}} 00069 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00070 00071 #endif // !defined(AFX_I2CREADBAR_H__9F4BE076_3442_456D_BA6B_6870A52DE4E3__INCLUDED_)
2006-2012