📄 listboxxp.h
字号:
///////////////////////////////////////////////////////////////////////////////
//
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -