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

📄 hlb.h

📁 vc ADO 连接数据库
💻 H
字号:
//****************************************************************************
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -