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

📄 lefttreeview.h

📁 本程序使用Visual C++6.0编写
💻 H
字号:
#if !defined(AFX_LeftTreeView_H__FEAFFEC2_14CA_4EB0_B582_8B9E9C6A3EDB__INCLUDED_)
#define AFX_LeftTreeView_H__FEAFFEC2_14CA_4EB0_B582_8B9E9C6A3EDB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LeftTreeView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CLeftTreeView form view
#include "MyConnection.h"
#include "SjsysView.h"
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class CLeftTreeView : public CTreeView
{
protected:
	CLeftTreeView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CLeftTreeView)

// Form Data
public:
	//{{AFX_DATA(CLeftTreeView)

	//}}AFX_DATA

// Attributes
public:
  	
    HTREEITEM hUnDivide;
	int DeviceRecordIndex;	//指向最后一条DEVICE记录,用于判断是否有新设备

    CTreeCtrl* m_TreeJoint;
    CString SQLStr;    //记录SQL语句
	CMyConnection m_myConnection;
	CString DBName;
	CString Server;
	CString User;
	CString Password;
	_ConnectionPtr pConnection; 
	_RecordsetPtr pDeviceRecordset;
	_RecordsetPtr pDepartmentRecordset;
//	_RecordsetPtr pDetailRecordset;
	_RecordsetPtr pEmployeeRecordset;

	void UpdateTree();	//查找是否有新的设备,同时更新设备的在线状态

	 //void PopupMenu();      //右键单击弹出

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLeftTreeView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnDraw(CDC* pDC);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CLeftTreeView();
	CImageList ImgTree;

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CLeftTreeView)
	afx_msg void OnPopUpNew();
	afx_msg void OnPopUpDelete();
	afx_msg void OnPopUpAmend();
	afx_msg void OnPopUpProperties();
	afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnPopUpRefresh();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


#endif // !defined(AFX_LeftTreeView_H__FEAFFEC2_14CA_4EB0_B582_8B9E9C6A3EDB__INCLUDED_)

⌨️ 快捷键说明

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