hlb.h

来自「vc ADO 连接数据库」· C头文件 代码 · 共 75 行

H
75
字号
//****************************************************************************
// File:
//
//     HLB.H
//
// Purpose:
//
//     Provides the declaration for the CHorzListBox class.
//
// Development Team:
//
//     James Rhodes
//
// Written by Microsoft Product Support Services, Languages Developer Support
// Copyright (c) 1996 Microsoft Corporation. All rights reserved.
//****************************************************************************

#ifndef HLB_H
#define HLB_H

#include <afxtempl.h>

typedef CArray<int,int> CIntArray;

/////////////////////////////////////////////////////////////////////////////
// CHorzListBox window

class CHorzListBox : public CListBox
{
// Construction
public:
	CHorzListBox();

// Attributes
protected:
	BOOL m_bLocked;
	CIntArray m_arrExtents;
	int m_nLongestExtent;
	int m_nTabStops;
	int* m_lpTabStops;

// Operations
public:
	void LockHExtentUpdate();
	void UnlockHExtentUpdate();
	void UpdateHExtent();

protected:
	void InsertNewExtent(int nItem, LPCTSTR lpszStr);
	void InsertNewExtent(int nItem, LPCTSTR lpszStr, CDC* pDC);
	void InitTabStops();

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

// Implementation
public:
	virtual ~CHorzListBox();

	// Generated message map functions
protected:
	//{{AFX_MSG(CHorzListBox)
	//}}AFX_MSG
	afx_msg LRESULT OnAddString(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnInsertString(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnDeleteString(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnSetTabStops(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
#endif

⌨️ 快捷键说明

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