⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clist.h

📁 墨香完整原代码 C++ 值得研究 可以编译
💻 H
字号:
// cList.h: interface for the cList class.
//
//////////////////////////////////////////////////////////////////////

#ifndef _cLIST_H_
#define _cLIST_H_

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

#include "cWindow.h"
#include "cListItem.h"


class cButton;

// 
// cList : °íÁ¤ »çÀÌÁî ¸®½ºÆ®
// 
class cList : public cWindow , public cListItem
{
public:
	cList();
	virtual ~cList();
	
	virtual void Init(LONG x, LONG y, WORD wid, WORD hei, cImage * basicImage, LONG ID);
	virtual void InitList(WORD wMaxLine, RECT * textClippingRect);
	virtual DWORD ActionEvent(CMouse * mouseInfo);
	virtual void Render();
	virtual void Add(cWindow * pushupBtn);
	virtual void SetAbsXY(LONG x, LONG y);

	//virtual DWORD ActionEvent(CMouse * mouseInfo);
	void SetMargin(RECT * textClippingRect);
	void OnUpwardItem();
	void OnDownwardItem();
	void SetLineUpward(BOOL val=TRUE) { m_fUpwardLine = val; }	// yet, not used

	BOOL PtInListBar(LONG x, LONG y);
	void SetListBar(LONG x, LONG y, WORD wid, WORD hei, int interval);
	void SetListBarImage(cImage * image){ m_BarImage = *image; }
protected:
	void Resize();

	BOOL m_fUpwardLine;
	LONG m_lLineHeight;
	LONG m_lLineNum;
	LONG m_lTopListItemIdx;
	RECT m_textClippingRect;

	cButton * m_pUpwardBtn;
	cButton * m_pDownwardBtn;

	// list bar
	cImage m_BarImage;
	VECTOR2	m_barListPos;
	cSize	m_barListSize;
	int		m_interval;
	BOOL	m_fBarDrag;
	LONG	m_dragGabY;

};

#endif // _cLIST_H_

⌨️ 快捷键说明

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