stationctrl.h
来自「串口调试助手的源代码」· C头文件 代码 · 共 64 行
H
64 行
// 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 + =
减小字号Ctrl + -
显示快捷键?