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

📄 managesystemview.h

📁 使用vc进行数据库编程的好例子
💻 H
字号:
// ManageSystemView.h : interface of the CManageSystemView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MANAGESYSTEMVIEW_H__E9E7EB34_5CCB_4760_854A_BC7A4AE36E89__INCLUDED_)
#define AFX_MANAGESYSTEMVIEW_H__E9E7EB34_5CCB_4760_854A_BC7A4AE36E89__INCLUDED_

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

#define WM_CHANGEDIALOG				WM_USER+5

#define WM_UPDETASELDATA			WM_USER+9

#define	WM_LOGON					WM_USER+12
#define WM_RECORDE_MOVE				WM_USER+13

#define WM_DELETESET				WM_USER+6
#define WM_MODIFYSET				WM_USER+14
#define WM_DELETEFROMDETAIL			WM_USER+7
#define WM_MODIFIRECORDE			WM_USER+8
//=====================
///////////////////////////
#include "ResultSimple.h"
#include "PdtResultDetail.h"
#include "MemResultDetail.h"

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

class CManageSystemView : public CFormView
{
protected: // create from serialization only
	CManageSystemView();
	DECLARE_DYNCREATE(CManageSystemView)

public:
	//{{AFX_DATA(CManageSystemView)
	enum{ IDD = IDD_MANAGESYSTEM_FORM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
	CManageSystemDoc*	GetDocument();
	CResultSimple		m_RstSimp_Dlg;
	CPdtResultDetail	m_PdtDetail_Dlg;
	CMemResultDetail	m_MemDetail_Dlg;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CManageSystemView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	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);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void AutoSizeDlg();
	void EmptyPResultDetail();
	void EmptyMResultDetail();
	int m_iSetNum;
	virtual ~CManageSystemView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CManageSystemView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	afx_msg void ShowPResultSimple(WPARAM wParam ,LPARAM lParam);
	afx_msg void ShowMResultSimple(WPARAM wParam ,LPARAM lParam);
	afx_msg void ShowPResultDetail(WPARAM wParam ,LPARAM lParam);
	afx_msg void ShowMResultDetail(WPARAM wParam ,LPARAM lParam);
	afx_msg void ChangeDialog(WPARAM wParam ,LPARAM lParam);
	afx_msg void DeleteSet(WPARAM wParam ,LPARAM lParam);
	afx_msg void ModifySet(WPARAM wParam ,LPARAM lParam);
	afx_msg void DeleteFromDetail(WPARAM wParam ,LPARAM lParam);
	afx_msg void ModifyRecord(WPARAM wParam ,LPARAM lParam);
	afx_msg void RecordeMove(WPARAM wParam ,LPARAM lParam);
	afx_msg void OnLogon(WPARAM wParam,LPARAM lParam);
	/////////////////////
	afx_msg void RecordAdd(WPARAM wParam ,LPARAM lParam);
	afx_msg void RecordModify(WPARAM wParam ,LPARAM lParam);
	afx_msg void RecordDelete(WPARAM wParam ,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ManageSystemView.cpp
inline CManageSystemDoc* CManageSystemView::GetDocument()
   { return (CManageSystemDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MANAGESYSTEMVIEW_H__E9E7EB34_5CCB_4760_854A_BC7A4AE36E89__INCLUDED_)

⌨️ 快捷键说明

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