Descent3/legacy/hogedit/listvwex.h

101 lines
2.8 KiB
C
Raw Normal View History

/*
2024-06-15 18:13:59 +00:00
* Descent 3
* Copyright (C) 2024 Parallax Software
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2024-04-19 21:54:58 +00:00
// ListVwEx.h : interface of the CListViewEx class
//
// This class provedes a full row selection mode for the report
// mode list view control.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1997 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
2024-06-15 18:13:59 +00:00
class CListViewEx : public CListView {
DECLARE_DYNCREATE(CListViewEx)
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// Construction
2024-04-19 21:54:58 +00:00
public:
2024-06-15 18:13:59 +00:00
CListViewEx();
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// Attributes
2024-04-19 21:54:58 +00:00
protected:
2024-06-15 18:13:59 +00:00
BOOL m_bFullRowSel;
2024-04-19 21:54:58 +00:00
public:
2024-06-15 18:13:59 +00:00
BOOL SetFullRowSel(BOOL bFillRowSel);
BOOL GetFullRowSel();
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
BOOL m_bClientWidthSel;
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// Overrides
2024-04-19 21:54:58 +00:00
protected:
2024-06-15 18:13:59 +00:00
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListViewEx)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT &cs);
protected:
//}}AFX_VIRTUAL
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// Implementation
2024-04-19 21:54:58 +00:00
public:
2024-06-15 18:13:59 +00:00
virtual ~CListViewEx();
2024-04-19 21:54:58 +00:00
#ifdef _DEBUG
2024-06-15 18:13:59 +00:00
virtual void Dump(CDumpContext &dc) const;
2024-04-19 21:54:58 +00:00
#endif
protected:
2024-06-15 18:13:59 +00:00
static LPCTSTR MakeShortString(CDC *pDC, LPCTSTR lpszLong, int nColumnLen, int nOffset);
void RepaintSelectedItems();
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// Implementation - client area width
int m_cxClient;
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// Implementation - state icon width
int m_cxStateImageOffset;
afx_msg LRESULT OnSetImageList(WPARAM wParam, LPARAM lParam);
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// Implementation - list view colors
COLORREF m_clrText;
COLORREF m_clrTextBk;
COLORREF m_clrBkgnd;
afx_msg LRESULT OnSetTextColor(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnSetTextBkColor(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnSetBkColor(WPARAM wParam, LPARAM lParam);
2024-04-19 21:54:58 +00:00
2024-06-15 18:13:59 +00:00
// Generated message map functions
2024-04-19 21:54:58 +00:00
protected:
2024-06-15 18:13:59 +00:00
//{{AFX_MSG(CListViewEx)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
afx_msg void OnSetFocus(CWnd *pOldWnd);
afx_msg void OnKillFocus(CWnd *pNewWnd);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
2024-04-19 21:54:58 +00:00
};
/////////////////////////////////////////////////////////////////////////////