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

📄 bcgpintellisenselb.h

📁 远程网络监视程序的源码
💻 H
字号:
#if !defined(AFX_BCGPINTELLISENSELB_H__46A739E6_3403_4577_9EBE_E2E59A7D1A1C__INCLUDED_)
#define AFX_BCGPINTELLISENSELB_H__46A739E6_3403_4577_9EBE_E2E59A7D1A1C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BCGPIntelliSenseLB.h : header file
//
#include "BCGCBPro.h"

class CBCGPEditCtrl;


class BCGCBPRODLLEXPORT CBCGPBaseIntelliSenseLB : public CListBox
{
	DECLARE_DYNCREATE (CBCGPBaseIntelliSenseLB)

// Construction
public:
	CBCGPBaseIntelliSenseLB();

// Attributes
public:
	virtual CSize GetMaxItemSize () const {return m_sizeMaxItem;}
	CFont*		m_pFont;

	static int m_nNumVisibleItems;

	CSize		m_sizeMaxItem;
	int			m_nLBHeight;

	static int	m_nImageToFocusRectSpacing;
	static int	m_nFocusRectToTextSpacing;
	static int	m_nRightSpacing;

	static COLORREF m_clrSelectedItemBkColor;
	static COLORREF m_clrSelectedItemTextColor;

// Operations
public:
	void SetImageList (CImageList* pImageList) {m_pImageList = pImageList;}
	virtual CSize GetImageSize (int iIdx); 
	virtual CSize GetTextSize (CString& str); 

	virtual void SelectCurrentWord () {}

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBCGPBaseIntelliSenseLB)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	virtual int CompareItem(LPCOMPAREITEMSTRUCT /*lpCompareItemStruct*/) {return -1;}
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CBCGPBaseIntelliSenseLB();

	// Generated message map functions
protected:
	//{{AFX_MSG(CBCGPBaseIntelliSenseLB)
	afx_msg void OnDblclk();
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnKillfocus();
	afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnNcDestroy();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

	CImageList* m_pImageList;

protected:
	CBCGPEditCtrl* GetParentEditCtrl ();
	virtual void InsertDataToEditCtrl () {}
};

/////////////////////////////////////////////////////////////////////////////
// CBCGPIntelliSenseLB window

class BCGCBPRODLLEXPORT CBCGPIntelliSenseLB : public CBCGPBaseIntelliSenseLB
{
	DECLARE_DYNCREATE (CBCGPIntelliSenseLB)
// Construction
public:
	CBCGPIntelliSenseLB();

// Attributes
public:

	static BOOL m_bComparenoCase;

// Operations
public:
	virtual void SelectCurrentWord ();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBCGPIntelliSenseLB)
	public:
	virtual int CompareItem(LPCOMPAREITEMSTRUCT lpCompareItemStruct);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CBCGPIntelliSenseLB();

	// Generated message map functions
protected:
	//{{AFX_MSG(CBCGPIntelliSenseLB)
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

	int			m_nInitOffset;
	int			m_nInitRow;

protected:
	virtual void InsertDataToEditCtrl ();
};

class BCGCBPRODLLEXPORT CBCGPSymImagesLB : public CBCGPBaseIntelliSenseLB
{
	DECLARE_DYNCREATE (CBCGPSymImagesLB)
// Construction
public:
	CBCGPSymImagesLB()
	{
	}

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBCGPIntelliSenseLB)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CBCGPSymImagesLB()
	{
	}

	// Generated message map functions
protected:
	//{{AFX_MSG(CBCGPSymImagesLB)
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
	virtual void InsertDataToEditCtrl ();

};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_BCGPINTELLISENSELB_H__46A739E6_3403_4577_9EBE_E2E59A7D1A1C__INCLUDED_)

⌨️ 快捷键说明

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