⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testsvrview.h

📁 OPCserver OPCserver.rar
💻 H
字号:
// TestSvrView.h : interface of the CTestSvrView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TESTSVRVIEW_H__E2B8A104_0AAF_4447_BC8A_835491C3174A__INCLUDED_)
#define AFX_TESTSVRVIEW_H__E2B8A104_0AAF_4447_BC8A_835491C3174A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CTestSvrView : public CListView
{
protected: // create from serialization only
	CTestSvrView();
	DECLARE_DYNCREATE(CTestSvrView)

// Attributes
public:
	CTestSvrDoc* GetDocument();
    int iRefreshIndex;
	int iCurRow;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestSvrView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL RemoveItemFromListCtrl( int iIndex);
	BOOL RandomDataToArray();
	BOOL UpdateArrayToListCtrl();
	BOOL AddItemToListCtrl();
	virtual ~CTestSvrView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	
	//{{AFX_MSG(CTestSvrView)
	afx_msg void OnUpdateMenuAddItem(CCmdUI* pCmdUI);
	afx_msg void OnMenuAddItem();
	afx_msg void OnUpdateMenuDelItem(CCmdUI* pCmdUI);
	afx_msg void OnMenuDelItem();
	afx_msg void OnMenuRegister();
	afx_msg void OnUpdateMenuRegister(CCmdUI* pCmdUI);
	afx_msg void OnMenuSvrStatus();
	afx_msg void OnUpdateMenuSvrStatus(CCmdUI* pCmdUI);
	afx_msg void OnMenuUnRegister();
	afx_msg void OnUpdateMenuUnRegister(CCmdUI* pCmdUI);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnAppExit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in TestSvrView.cpp
inline CTestSvrDoc* CTestSvrView::GetDocument()
   { return (CTestSvrDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTSVRVIEW_H__E2B8A104_0AAF_4447_BC8A_835491C3174A__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -