📄 dutcomputermanagerview.h
字号:
// DutComputerManagerView.h : interface of the CDutComputerManagerView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DUTCOMPUTERMANAGERVIEW_H__1FAB3E96_3E21_4A0B_A972_0C14D1F85FFF__INCLUDED_)
#define AFX_DUTCOMPUTERMANAGERVIEW_H__1FAB3E96_3E21_4A0B_A972_0C14D1F85FFF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "OutputBar.h"
CString GetExcelDriver();
BOOL MakeSurePathExists( CString &Path, bool FilenameIncluded=true);
void ExportListToExcel(CListCtrl* pList, CString strTitle);
/*
ID、物品编号、物品名称、状态、来源、使用人、价格、类别ID、场所ID、备注 、CPU、内存、硬盘、显卡、网卡、显示器、键盘、鼠标、主板
*/
class CDutComputerManagerView : public CListView
{
protected: // create from serialization only
CDutComputerManagerView();
DECLARE_DYNCREATE(CDutComputerManagerView)
// Attributes
public:
CDutComputerManagerDoc* GetDocument();
CListCtrl *m_plistCtrl;
COutputBar *m_pOutBar;
BOOL m_bChanged;
CList <_dbbean,_dbbean &>m_dataList ;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDutComputerManagerView)
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:
void testDouble(void);
void InsertData();
virtual ~CDutComputerManagerView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
void ShowPopupMenu(CPoint& point );
//{{AFX_MSG(CDutComputerManagerView)
afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnFileToexcel();
//}}AFX_MSG
afx_msg LRESULT OnCollumMessage(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnQueryMessage(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in DutComputerManagerView.cpp
inline CDutComputerManagerDoc* CDutComputerManagerView::GetDocument()
{ return (CDutComputerManagerDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DUTCOMPUTERMANAGERVIEW_H__1FAB3E96_3E21_4A0B_A972_0C14D1F85FFF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -