📄 leftview.h
字号:
#if !defined(AFX_LEFTVIEW_H__54562A83_D3F5_4EB8_A79D_E738EA28F7FD__INCLUDED_)
#define AFX_LEFTVIEW_H__54562A83_D3F5_4EB8_A79D_E738EA28F7FD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LeftView.h : header file
//
#include "CCAMSDoc.h"
/////////////////////////////////////////////////////////////////////////////
// CLeftView form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CLeftView : public CFormView
{
protected:
CLeftView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CLeftView)
// Form Data
public:
//{{AFX_DATA(CLeftView)
enum { IDD = IDD_LEFT_VIEW };
CTreeCtrl m_treeClients;
CButton m_butDiag;
CButton m_butList;
//}}AFX_DATA
// Attributes
public:
// Operations
public:
CCCAMSDoc* GetDocument();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLeftView)
public:
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CLeftView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CLeftView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnButtonHisList();
afx_msg void OnButtonHisDiag();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnDblclkTreeClients(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void InitListTree();
void InitDiagTree();
//用户选择某一顶之前的选择, 防止用户重复双击同一项发生不必要的更新
HTREEITEM m_hPreItem;
// 修改活动主机列表的状态量需每 10 秒进行一次,
// 而更新主机列表需每 1 秒进行一次,
// 为协调二者, 设定时器值为 1 秒,
// 10 次后, 修改主机列表
// int m_nTimerCount;
};
#ifndef _DEBUG // debug version in CCAMSView.cpp
inline CCCAMSDoc* CLeftView::GetDocument()
{ return (CCCAMSDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LEFTVIEW_H__54562A83_D3F5_4EB8_A79D_E738EA28F7FD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -