shopinglistview.h

来自「AppWizard has created this ShopingList a」· C头文件 代码 · 共 80 行

H
80
字号
// ShopingListView.h : interface of the CShopingListView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SHOPINGLISTVIEW_H__FF73580F_5D03_11D2_939B_00C0F01731C5__INCLUDED_)
#define AFX_SHOPINGLISTVIEW_H__FF73580F_5D03_11D2_939B_00C0F01731C5__INCLUDED_

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

#include "TotalWnd.h"

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

public:
	//{{AFX_DATA(CShopingListView)
	enum { IDD = IDD_SHOPINGLIST_FORM };
	CListCtrl	m_ListBox;
	//}}AFX_DATA

// Attributes
public:
	CShopingListDoc* GetDocument();
	CTotalWnd *m_pTotalWnd;
	
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShopingListView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	void CreateTotals();
	void CreateListBoxHeader();
	void UpdateListBox();
	//{{AFX_MSG(CShopingListView)
	afx_msg void OnInsert();
	afx_msg void OnItemclickList1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClickList(TBNOTIFY* pNMHDR, LRESULT* pResult);
	afx_msg void OnDelete();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ShopingListView.cpp
inline CShopingListDoc* CShopingListView::GetDocument()
   { return (CShopingListDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SHOPINGLISTVIEW_H__FF73580F_5D03_11D2_939B_00C0F01731C5__INCLUDED_)

⌨️ 快捷键说明

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