listboxex.h
来自「哈夫曼编码解码演示程序」· C头文件 代码 · 共 60 行
H
60 行
#if !defined(AFX_LISTBOXEX_H__EE3DA603_6DA7_476B_8976_3F9422A785C6__INCLUDED_)
#define AFX_LISTBOXEX_H__EE3DA603_6DA7_476B_8976_3F9422A785C6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ListBoxEx.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CListBoxEx window
class CListBoxEx : public CListBox
{
// Construction
public:
CListBoxEx();
// Attributes
public:
int AddString(LPCTSTR s);
int InsertString(int i, LPCTSTR s);
int DeleteString(int i);
void ResetContent();
// Operations
public:
CBrush m_bkBrush;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListBoxEx)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CListBoxEx();
// Generated message map functions
protected:
void updateWidth(LPCTSTR s);
int width;
//{{AFX_MSG(CListBoxEx)
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnSelchange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LISTBOXEX_H__EE3DA603_6DA7_476B_8976_3F9422A785C6__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?