mylist.h

来自「一个多方面查询的系统,也是很辛苦找到,并且做管理系统很多方面都用到的」· C头文件 代码 · 共 52 行

H
52
字号
// MyList.h: interface for the CMyList class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYLIST_H__CE48EDF8_7D12_4467_B691_D3C9ED1F4DF5__INCLUDED_)
#define AFX_MYLIST_H__CE48EDF8_7D12_4467_B691_D3C9ED1F4DF5__INCLUDED_

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



class CMyList  
{
public:
	int GetSize();
	void CleanItems();
	bool bAnimate;
	void AnimateOut();
	void OutRect();
	void OnTimer();
	int iFlag;
	void setPos(CRect rc);
	bool bEnable;
	UINT nID;
	void listdown();
	void listup();
	COLORREF col,bordercol;
	void draw(CDC *pDC);
	void AddItem(char *name, int imageindex,bool fromfile=false,int act=-1,char *filename=NULL);
	void OnMouseMove(CPoint point);
	void OnLButtonUp(CPoint point);
	void OnLButtonDown(CPoint point);
	void OnRButtonDown(CPoint point);
	CWnd *pParentWnd;
	int iGap;
	int iStartTop;
	int iTopMargin;
	int iLeftMargin;
	CRect ListRect;
	CMyLabel *UpButton;
	CMyLabel *DownButton;
	CPtrArray	arItems;
	CMyList(CWnd *parentWnd,UINT id,bool enable=true);
	CMyList();
	virtual ~CMyList();

};

#endif // !defined(AFX_MYLIST_H__CE48EDF8_7D12_4467_B691_D3C9ED1F4DF5__INCLUDED_)

⌨️ 快捷键说明

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