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

📄 stationctrl.h

📁 串口调试助手的源代码
💻 H
字号:
// Written by JHCC

// StationCtrl.h : header file
//

#include "CtrlInfo.h"

/////////////////////////////////////////////////////////////////////////////
// CStationCtrl window

class CStationCtrl : public CListBox
{
// Construction
public:
	CStationCtrl();

// Attributes
public:
	CCtrlInfoArray*	m_pCtrlInfoArray;
	CArray<BOOL, BOOL>	m_isCheckedArray;
	CArray<CRect, CRect>	m_rtCheckBoundsArray;
	int	m_nItemSpace;
	int	m_nCheckBoxSpace;
	int	m_nCheckedItem;
	int	m_nCurrentTop;

// Operations
public:
	void	SetItemSpace(int  nItemSpace);
	void	SetCheckBoxSpace(int  nCheckBoxSpace);
	void	SetCtrlInfoArray(CCtrlInfoArray*  pCtrlInfoArray);
	void	DrawCheckBox(void);
	void	CalcCheckBoxBounds(void);
	int	GetLastVisibleItem(void);
	virtual void	DrawItemText(int  nIndex, CDC*  pDC, CRect*  pBounds, BOOL  bHilight);
	virtual void	DrawCheckBox(CDC*  pDC, CRect*  pBounds, BOOL  bHilight, BOOL  bChecked);
	virtual int	GetCheckBoxSize(CDC*  pDC);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStationCtrl)
	public:
	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CStationCtrl();

	// Generated message map functions
protected:
	//{{AFX_MSG(CStationCtrl)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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