📄 querystockview.h
字号:
#if !defined(AFX_QUERYSTOCKVIEW_H__8C837C81_934C_4AA0_97DF_0F4688FB1A78__INCLUDED_)
#define AFX_QUERYSTOCKVIEW_H__8C837C81_934C_4AA0_97DF_0F4688FB1A78__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// QueryStockView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CQueryStockView form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CQueryStockView : public CFormView
{
protected:
CQueryStockView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CQueryStockView)
// Form Data
public:
//{{AFX_DATA(CQueryStockView)
enum { IDD = IDD_QUERYSTOCK };
CListCtrl m_ctlList;
CString m_strMedName;
CString m_strOutPrice;
CString m_strQuantity;
CString m_strInPrice;
//}}AFX_DATA
// Attributes
public:
// Operations
public:
void GetTotalMoney();
void AddListHeader();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CQueryStockView)
public:
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CString m_strUserInput;
int m_nItem;
static const int m_nFieldCount; // 字段个数
static const CString m_strFields[]; // 注意这里
_RecordsetPtr m_pRecordset;
virtual ~CQueryStockView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CQueryStockView)
afx_msg void OnDestroy();
afx_msg void OnQuery();
afx_msg void OnModify();
afx_msg void OnClickList(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_QUERYSTOCKVIEW_H__8C837C81_934C_4AA0_97DF_0F4688FB1A78__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -