12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #pragma once
- #include "afxwin.h"
- #include "afxcmn.h"
- #include "Common.h"
- #include "TaskWindow.h"
- // CGlobalVariable 对话框
- // CGlobalValue 对话框
- class CGlobalValue : public CBCGPDialog
- {
- DECLARE_DYNAMIC(CGlobalValue)
- public:
- CGlobalValue(CWnd* pParent = NULL); // 标准构造函数
- virtual ~CGlobalValue();
- // 对话框数据
- #ifdef AFX_DESIGN_TIME
- enum { IDD = IDD_GLOBALVALUE };
- #endif
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- CBCGPListCtrl m_wndGlobleVar;
- afx_msg void OnBnClickedGvAddInt();
- afx_msg void OnBnClickedGvAddStr();
- afx_msg void OnBnClickedGvAddBool();
- afx_msg void OnBnClickedGvAddFloat();
- afx_msg void OnBnClickedGvDelete();
- afx_msg void OnEnKillfocusGvAnnotation();
- afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
- DECLARE_MESSAGE_MAP()
- public:
-
- // 执行序列化
- BOOL DoSerialize(CArchive& ar);
- void Clear();
- //vector<TOOL_INTERFACE> m_Interfaces; // 接口
- //vector<GLOBALVAR> m_GV_Link;
- CDllTool* m_pDllPtr;
- TOOL m_GV_Tools;
- int m_nTest;
- ///////////////////////////////////////////////////////////////
- // 根据Interface获取Interface
- TOOL_INTERFACE* GetInterfaceByInterface(TOOL_INTERFACE& inf);
- ////////////////////////////////////////////////////////////////////
- // 判断是否是同一个接口
- bool IsSameInterface(const TOOL_INTERFACE& source, const TOOL_INTERFACE& dest);
- // 保存控件信息到文件中
- BOOL DoSerializeOut(CArchive& ar);
- // 从文件中加载控件信息
- BOOL DoSerializeIn(CArchive& ar);
- protected:
- void UpdateUI();
- int m_nRow;
- int m_nCol;
- int m_int_VarLink[999];
- float m_flot_VarLink[999];
- CString m_string_VarLink[999];
- bool m_bool_VarLink[999];
- CBCGPEdit m_wndEdit;
-
- public:
- afx_msg void OnNMDblclkGlobleVar(NMHDR *pNMHDR, LRESULT *pResult);
- };
|