odbcdemo2view.h
来自「一个很好的VC++ 用ODBC编的」· C头文件 代码 · 共 120 行
H
120 行
// ODBCDemo2View.h : interface of the CODBCDemo2View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ODBCDEMO2VIEW_H__531D2E2D_6977_4E4C_BC53_18733ED98091__INCLUDED_)
#define AFX_ODBCDEMO2VIEW_H__531D2E2D_6977_4E4C_BC53_18733ED98091__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define TABLE_SPRODUCTS 1
#define TABLE_SCUSTOMERS 2
#define TABLE_SIMPLOYEES 3
#define TABLE_PRODUCTS 4
#define TABLE_CUSTOMERS 5
#define TABLE_IMPLOYEES 6
class CODBCDemo2Doc;
class CODBCDemo2View : public CListView
{
protected: // create from serialization only
CODBCDemo2View();
DECLARE_DYNCREATE(CODBCDemo2View)
// Attributes
public:
CODBCDemo2Doc* GetDocument();
HMENU m_menuPopup;
public:
// print information:
// titles and foot
CString m_strReportTitle;
CString m_strReportFooter;
BOOL m_fHavePage;
UINT m_uPageType;
// fields
CStringArray m_saSelectedFields;
CStringArray m_saSelectedFieldsTitle;
// format
// font name
CString m_strFontTitle;
CString m_strFontContentHead;
CString m_strFontContent;
CString m_strFontFooter;
// font size
UINT m_uSizeTitle;
UINT m_uSizeContentHead;
UINT m_uSizeContent;
UINT m_uSizeFooter;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CODBCDemo2View)
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);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
UINT m_uStatus;
BOOL ShowInformation(CString strSQL);
void OutputReport(CDC* pDC, CPrintInfo* pInfo=NULL);
virtual ~CODBCDemo2View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CODBCDemo2View)
afx_msg void OnViewCustomer();
afx_msg void OnDestroy();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnSaleProduct();
afx_msg void OnSaleEmployee();
afx_msg void OnSaleCustomer();
afx_msg void OnUpdateSaleProduct(CCmdUI* pCmdUI);
afx_msg void OnUpdateSaleCustomer(CCmdUI* pCmdUI);
afx_msg void OnUpdateSaleEmployee(CCmdUI* pCmdUI);
afx_msg void OnExployee();
afx_msg void OnViewProduct();
afx_msg void OnViewTransportor();
afx_msg void OnViewProvider();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ODBCDemo2View.cpp
inline CODBCDemo2Doc* CODBCDemo2View::GetDocument()
{ return (CODBCDemo2Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ODBCDEMO2VIEW_H__531D2E2D_6977_4E4C_BC53_18733ED98091__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?