listboxxp.h
来自「用过恒迅达交换机的人都知道。恒迅达交换机是需要在交换机内部运行中间程序来给脚本提」· C头文件 代码 · 共 73 行
H
73 行
///////////////////////////////////////////////////////////////////////////////
//
// ListBoxXP.h
//
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include "tools.h"
#include "autofont.h"
///////////////////////////////////////////////////////////////////////////////
class CListBoxXP : public CListBox
{
// Construction
public:
CListBoxXP();
// Attributes
private:
CAutoFont fnt;
int itm,edited,addBefore;
HWND hHelper,hAdd;
BOOL edItm;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListBoxXP)
public:
virtual void PreSubclassWindow();
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
virtual int VKeyToItem(UINT nKey, UINT nIndex);
virtual int CharToItem(UINT nKey, UINT nIndex);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CListBoxXP();
protected:
CMouseMgr m_MouseMgr;
// Generated message map functions
protected:
virtual void OnItemRenamed(UINT Item);
virtual void OnItemAdded(UINT Item);
//{{AFX_MSG(CListBoxXP)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnNcPaint();
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnDblclk();
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnSelchange();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
afx_msg void OnMouseOut();
DECLARE_MESSAGE_MAP()
private:
void EnableItemEditing(BOOL bYes=1);
UINT CountLines(const char * szBuf);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?