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

📄 clientmainview.h

📁 客户端服务器源码
💻 H
字号:
// clientMainView.h : interface of the CClientMainView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "datagrid.h"
//}}AFX_INCLUDES

#if !defined(AFX_CLIENTMAINVIEW_H__F8D58902_C950_46A0_94FF_21F426F4B6DD__INCLUDED_)
#define AFX_CLIENTMAINVIEW_H__F8D58902_C950_46A0_94FF_21F426F4B6DD__INCLUDED_

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


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

public:
	//{{AFX_DATA(CClientMainView)
	enum { IDD = IDD_CLIENTMAIN_MATERIAL };
	CButton	m_btnPrint;
	CButton	m_btnQuery;
	CButton	m_btnFind;
	CButton	m_btnViewAll;
	CButton	m_btnPrev;
	CButton	m_btnNext;
	CButton	m_btnModify;
	CButton	m_btnLast;
	CButton	m_btnFirst;
	CButton	m_btnDel;
	CButton	m_btnCancel;
	CButton	m_btnAddNew;
	CString	m_strID;
	CString	m_strName;
	double	m_fPrice;
	CDataGrid	m_grdViewAll;
	//}}AFX_DATA

// Attributes
public:
	CClientMainDoc* GetDocument();
	_bstr_t 		m_strSql;	// 用来打开记录集的字符串
	_bstr_t			m_strVSql; // 用来打开对应的数据库视图
	_bstr_t			m_strPSql; // 用来打印用的SQL语句
	VARIANT			m_vBookMark;	// 用来标志当前的记录位置

// Operations
public:
	CClientMainView();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClientMainView)
	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);
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CClientMainView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CClientMainView)
	afx_msg void OnBtnFirst();
	afx_msg void OnBtnAdd();
	afx_msg void OnBtnView();
	afx_msg void OnBtnCancel();
	afx_msg void OnBtnFind();
	afx_msg void OnBtnLast();
	afx_msg void OnBtnPrevious();
	afx_msg void OnBtnNext();
	afx_msg void OnBtnModify();
	afx_msg void OnBtnDelete();
	afx_msg void OnBtnQuery();
	afx_msg void OnBtnPrint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in clientMainView.cpp
inline CClientMainDoc* CClientMainView::GetDocument()
   { return (CClientMainDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_CLIENTMAINVIEW_H__F8D58902_C950_46A0_94FF_21F426F4B6DD__INCLUDED_)

⌨️ 快捷键说明

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