mylistbox.h

来自「监控摄像头(高速球)的调节程序」· C头文件 代码 · 共 59 行

H
59
字号
#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 + =
减小字号Ctrl + -
显示快捷键?