SelectBox.h
上传用户:hkb425
上传日期:2007-06-16
资源大小:34191k
文件大小:1k
- // SelectBox.h: interface for the CSelectBox class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SELECTBOX_H__887D5121_AC9F_11D6_8156_5254AB37CDC9__INCLUDED_)
- #define AFX_SELECTBOX_H__887D5121_AC9F_11D6_8156_5254AB37CDC9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "scrollbar.h"
- class CSelectBox
- {
- public:
- CSelectBox();
- virtual ~CSelectBox();
- void SetSelectBox(RECT rect,char *titleFile,int curItem=0);
- void SetSelect(int iItem);
- int GetSelect();
- void RenderSelectBox();
- bool m_bValueChanged;
- private:
- void UpdateSelectBox();
- int m_iLineHeight; //每行高
- int m_numLine; //总行数
- int m_iShowLine; //筐中容纳行数
- bool m_bShowScroll;
- RECT m_rect;
- int m_iHead; //显示第一行的号码
- int m_iMaxItem;
- int m_iSelect;
- CScrollBar m_cScrollBar;
- CGraphButton *m_pButton;
- };
- #endif // !defined(AFX_SELECTBOX_H__887D5121_AC9F_11D6_8156_5254AB37CDC9__INCLUDED_)