📄 mylistbox.h
字号:
#if !defined(AFX_MYLISTBOX_H__2FBAC8E5_8494_4105_9556_58AA28E05DD0__INCLUDED_)
#define AFX_MYLISTBOX_H__2FBAC8E5_8494_4105_9556_58AA28E05DD0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyListBox.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMyListBox window
class CMyListBox : public CListBox
{
private:
CToolTipCtrl m_wndToolTip;
CString m_tipText;
// Construction
public:
CMyListBox();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyListBox)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
void SetTipText(CString tipText);
virtual ~CMyListBox();
int AddString(LPCTSTR lpszItem);
// Generated message map functions
protected:
int m_nMaxWidth;
//{{AFX_MSG(CMyListBox)
afx_msg UINT OnNcHitTest(CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYLISTBOX_H__2FBAC8E5_8494_4105_9556_58AA28E05DD0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -