📄 mylist.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -