gfxincombolist.h

来自「我自己整理的一些VC源代码」· C头文件 代码 · 共 67 行

H
67
字号
#if !defined(AFX_GFXINCOMBOLIST_H__B8F997D5_E92B_11D1_86F0_000000000000__INCLUDED_)
#define AFX_GFXINCOMBOLIST_H__B8F997D5_E92B_11D1_86F0_000000000000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// GfxInComboList.h : header file
//

#define WM_USER_SELENDOK	WM_USER+2

/////////////////////////////////////////////////////////////////////////////
// CGfxInComboList window
class CGfxInCombo;

typedef struct st_iteminfo
{
	CString strText;
	DWORD	dwData;
} st_iteminfo;

class CGfxInComboList : public CListCtrl
{
// Construction
public:
	CGfxInComboList();

// Attributes
public:
	CGfxInCombo * pCombo;
	int			  iLastSel;
	//CString		  csLastItem;
	st_iteminfo   stItem;

// Operations
public:

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

// Implementation
public:
	int GetColumnCount();
	virtual ~CGfxInComboList();

	// Generated message map functions
protected:
	//{{AFX_MSG(CGfxInComboList)
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GFXINCOMBOLIST_H__B8F997D5_E92B_11D1_86F0_000000000000__INCLUDED_)

⌨️ 快捷键说明

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