DlgBitManager.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //{{AFX_INCLUDES()
  2. #include "DataGrid.h"
  3. #include "DataComboBox.h"
  4. #include "BtnST.h"
  5. //}}AFX_INCLUDES
  6. #if !defined(AFX_DLGBITMANAGER_H__328FA931_CC67_426C_B3D7_FE99C1A6324E__INCLUDED_)
  7. #define AFX_DLGBITMANAGER_H__328FA931_CC67_426C_B3D7_FE99C1A6324E__INCLUDED_
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11. // AnalogDlg.h : header file
  12. //
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CDlgBitManager dialog
  15. class CDlgBitManager : public CDialog
  16. {
  17. // Construction
  18. public:
  19. void SetVal(int row,int col,CString str);
  20. CDlgBitManager(CWnd* pParent = NULL); // standard constructor
  21. // Dialog Data
  22. //{{AFX_DATA(CDlgBitManager)
  23. enum { IDD = IDD_DLG_SELECT_BIT };
  24. CDataGrid m_ctrlGridBit;
  25. //}}AFX_DATA
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CDlgBitManager)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. //}}AFX_VIRTUAL
  32. public:
  33. CButtonST m_btnEdit,m_btnDel,m_btnCopy,m_btnAdd, m_btnOK, m_btnCancel;
  34. CString m_strUID;
  35. int m_nID;
  36. int m_nStartBit;
  37. int m_nEndBit;
  38. private:
  39. void SetFields();
  40. void Requery();
  41. void RowSelect();
  42. // Implementation
  43. protected:
  44. // Generated message map functions
  45. //{{AFX_MSG(CDlgBitManager)
  46. virtual void OnOK();
  47. virtual void OnCancel();
  48. virtual BOOL OnInitDialog();
  49. DECLARE_EVENTSINK_MAP()
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. public:
  53. afx_msg void OnBnClickedAdd();
  54. afx_msg void OnBnClickedEdit();
  55. afx_msg void OnBnClickedDel();
  56. afx_msg void OnBnClickedCopy();
  57. protected:
  58. virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  59. public:
  60. afx_msg void OnBnClickedBtnCancel();
  61. afx_msg void OnBnClickedBtnSelect();
  62. protected:
  63. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  64. };
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_ANALOGDLG_H__328FA931_CC67_426C_B3D7_FE99C1A6324E__INCLUDED_)