windows-nt/Source/XPSP1/NT/net/mmc/wins/listview.h

72 lines
1.5 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/**********************************************************************/
/** Microsoft Windows/NT **/
/** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
/**********************************************************************/
/*
listview.h
Listview control
FILE HISTORY:
*/
#ifndef _LISTVIEW_H
#define _LISTVIEW_H
#define LISTVIEWEX_NOT_CHECKED 1
#define LISTVIEWEX_CHECKED 2
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CListCtrlExt : public CListCtrl
{
DECLARE_DYNCREATE(CListCtrlExt)
// Construction
public:
CListCtrlExt();
// Attributes
protected:
BOOL m_bFullRowSel;
public:
BOOL SetFullRowSel(BOOL bFillRowSel);
BOOL GetFullRowSel();
int AddItem(LPCTSTR pText, int nRow);
BOOL SelectItem(int nItemIndex);
BOOL IsSelected(int nItemIndex);
BOOL CheckItem(int nItemIndex);
BOOL SetCheck(int nItemIndex, BOOL fCheck);
UINT GetCheck(int nItemIndex);
int GetSelectedItem();
// Overrides
protected:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListCtrlExt)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CListCtrlExt();
// Generated message map functions
protected:
//{{AFX_MSG(CListCtrlExt)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg VOID OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
#endif _LISTVIEW_H