⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xcombolist.h

📁 一个实用的GIS系统的系统维护模块
💻 H
字号:
// XComboList.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CXComboList window
#ifndef XCOMBOLIST_H
#define XCOMBOLIST_H

extern UINT NEAR WM_XCOMBOLIST_VK_RETURN;
extern UINT NEAR WM_XCOMBOLIST_VK_ESCAPE;
extern UINT NEAR WM_XCOMBOLIST_KEYDOWN;
extern UINT NEAR WM_XCOMBOLIST_LBUTTONUP;
class CXComboList : public CWnd
{
// Construction

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CXComboList)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	void SendRegisteredMessage(UINT nMsg, WPARAM wParam, LPARAM lParam);
	void SetActive(int nScrollBarWidth);
	virtual ~CXComboList();

	// Generated message map functions
protected:
    CListBox	m_ListBox;
	CScrollBar	m_wndSBVert;
	CWnd *		m_pParent;
	int			m_nCount;
	BOOL		m_bFirstTime;
public:
	CXComboList(CWnd *pParent);
   	int AddString(LPCTSTR lpszItem)
	{  
		return m_ListBox.AddString(lpszItem);
	}
		int GetCurSel()
	{
		return m_ListBox.GetCurSel();
	}
	void SetFont(CFont* pFont, BOOL bRedraw = TRUE)
	{
		m_ListBox.SetFont(pFont, bRedraw);
	}
    int GetCount()
	{
		return m_ListBox.GetCount();
	}
    void GetText(int nIndex, CString& rString)
	{
		m_ListBox.GetText(nIndex, rString);
	}
int FindStringExact(int nIndexStart, LPCTSTR lpszFind)
	{
		return m_ListBox.FindStringExact(nIndexStart, lpszFind);
	}
int SetCurSel(int nSelect)
	{
		return m_ListBox.SetCurSel(nSelect);
	}
	//{{AFX_MSG(CXComboList)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_XCOMBOLIST_H__59E48CF5_0DE0_441C_81F3_1D8F096F0C64__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -