MainView.h
上传用户:lvjun8202
上传日期:2013-04-30
资源大小:797k
文件大小:2k
- #if !defined(AFX_MAINVIEW_H__85F7E17C_1F0B_46EF_BBC1_8DEDF437517C__INCLUDED_)
- #define AFX_MAINVIEW_H__85F7E17C_1F0B_46EF_BBC1_8DEDF437517C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MainView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CMainView form view
- #ifndef __AFXEXT_H__
- #include <afxext.h>
- #endif
- class CMainView : public CFormView
- {
- protected:
- CMainView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CMainView)
- // Form Data
- public:
- //{{AFX_DATA(CMainView)
- enum { IDD = IDD_FORM_IMAGE };
- CEdit m_cIP;
- CString m_IP;
- //}}AFX_DATA
- // Attributes
- public:
- // Operations
- public:
- void ResizeFill(CRect& rect,int flag);
-
- // int status[16][4];
- long id[16][4];
- int power[2]; /*表示电源*/
-
- void GetStatus(int status[16][4]);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainView)
- public:
- virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnDraw(CDC* pDC);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CMainView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- //{{AFX_MSG(CMainView)
- afx_msg void OnClick();
- afx_msg void OnRefresh();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnChangeNewip();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINVIEW_H__85F7E17C_1F0B_46EF_BBC1_8DEDF437517C__INCLUDED_)