?? projectmanageview.h
字號:
// ProjectManageView.h : CProjectManageView 類的接口
//
#pragma once
#include "User.h"
#include "TabSheet.h"
#include "BaseInfo.h"
#include "UserCost.h"
#include "CarList.h"
#include "StuffList.h"
#include "../codex/cdxCSizingFormView.h"
class CProjectManageDoc;
class CProjectManageView : public cdxCSizingFormView
{
protected: // 僅從序列化創建
CProjectManageView();
DECLARE_DYNCREATE(CProjectManageView)
CADOStorage m_Storage; //數據庫連接
CADOConnection m_Conn;
CString m_TblName; //表名稱
// 屬性
public:
enum{IDD = IDD_FORMVIEW_LIST };
_ConnectionPtr m_pConnection;
//CListCtrl m_oListmateriel;
CEdit m_oClassname;
CString m_classname;
int m_radiodiscount;
long m_tempid;
CTabSheet m_BasicInfoTabPage;
CTabSheet m_ItemTabPage;
CListCtrl m_oListmateriel;
CStatic m_wndPlaceholder;
CButton m_Box;
// 操作
public:
CProjectManageDoc* GetDocument() const;
CMultiDocTemplate* m_pDocTemplate;
// 重寫
public:
CBaseInfo m_oBaseInfodlg;
CUserCost m_oStuffList;
CCarList m_oCarList;
CStuffList m_oSutffList;
public:
virtual void OnDraw(CDC* pDC); // 重寫以繪制該視圖
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// 實現
public:
virtual ~CProjectManageView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函數
protected:
DECLARE_MESSAGE_MAP()
public:
virtual void OnInitialUpdate();
void InitListHead();
void AddSubTree(CString ParTree, HTREEITEM hPartItem);
int TreeSumRecordCount(CString strFieldValue);
CString VariantToCString(VARIANT var);
protected:
virtual void DoDataExchange(CDataExchange* pDX);
public:
afx_msg void OnNMClickList1(NMHDR *pNMHDR, LRESULT *pResult);
void LoadListViewData();
void LoadData(CString sSql);
afx_msg void OnSize(UINT nType, int cx, int cy);
void OnWriteexcel(CString spath);
};
#ifndef _DEBUG // ProjectManageView.cpp 中的調試版本
inline CProjectManageDoc* CProjectManageView::GetDocument() const
{ return reinterpret_cast<CProjectManageDoc*>(m_pDocument); }
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -