📄 demolistview.h
字号:
#if !defined(AFX_DEMOLISTVIEW_H__F2578414_6CC7_4114_9B52_4B282D6E47CC__INCLUDED_)
#define AFX_DEMOLISTVIEW_H__F2578414_6CC7_4114_9B52_4B282D6E47CC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DemoListView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDemoListView view
#include <Afxcview.h>
class CDemoListView : public CListView //演示视图部分
{
protected:
CDemoListView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDemoListView)
// Attributes
public:
double m_price[100];
double m_weight[100];
int m_number;
double m_totalweight;
int m_serize; //要移动物体的序号
int m_top; //要移动物体的位置(竖直方向)
int m_Maxbotton; //要移动物体的目标位置
int m_first; //被移动物体是否第一次移动
double price,weight; //被移动物体的价钱和重量
// Operations
public:
void OnExecute();
void DrawOnTimer();
void DrawObject();
void AddDemoData(int n,double m,double p[100], double w[100]);
static void CALLBACK OnTimerExcute(HWND hWnd,UINT nMsg,UINT nIDEvent,DWORD dwTime);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDemoListView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDemoListView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CDemoListView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DEMOLISTVIEW_H__F2578414_6CC7_4114_9B52_4B282D6E47CC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -