?? hlistbox.h
字號:
//****************************************************************************
// File:
//
// HListBox.H
//
// Purpose:
//
// Provides the declaration for the CHListBox class.
//
// Development Team:
//
// James Rhodes
//
// Written by Microsoft Product Support Services, Languages Developer Support
// Copyright (c) 1996 Microsoft Corporation. All rights reserved.
//****************************************************************************
#include "stdafx.h"
#ifndef HLISTBOX_H
#define HLISTBOX_H
#include <afxtempl.h>
typedef CArray<int, int> CintArray;
/////////////////////////////////////////////////////////////////////////////
// CHListBox window
class AFX_CLASS_EXPORT CHListBox : public CListBox
{
// Construction
public:
CHListBox();
// 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(CHListBox)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHListBox();
// Generated message map functions
protected:
//{{AFX_MSG(CHListBox)
//}}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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -