📄 resorgsymbolslistctrl.h
字号:
#if !defined(__ResOrgSymbolsListCtrl_H__)
#define __ResOrgSymbolsListCtrl_H__
/************************************************************************
*
* Resource ID Organiser Utility Library
*
* (c) Copyright 2001 by Andy Metcalfe (andy.metcalfe@lineone.net)
* All rights reserved.
*
************************************************************************
*
* Filename : ResOrgSymbolsListCtrl.h
*
* Description : CResOrgSymbolsListCtrl - list control class for a
* resource symbol file
*
* Compiler : Microsoft Visual C++ 6.0, Service Pack 3 or 4
*
* Target
* Environment : Windows 98/NT
*
* NOTE:
*
* This software is provided "as is" free for personal use. All
* title and copyrights in and to the software, including but not
* limited to any images, text, etc. incorporated into it, are
* owned by Andy Metcalfe, except where acknowledged otherwise.
*
* Your may freely to use this code in your own products, PROVIDED
* this notice is not removed or modified.
*
*
* Visit http://www.resorg.co.uk for latest updates
*
************************************************************************
*
* MODIFICATION HISTORY:
*
* This is a controlled document. See project configuration
* control tool for latest version and full version history.
*
* $Archive: /Projects/AddIns/ResOrg/ResOrgUtils/ResOrgSymbolsListCtrl.h $
* $Revision: 3 $
* $Date: 22/06/01 9:50 $
* $Author: Andy $
*
* $History: ResOrgSymbolsListCtrl.h $
*
* ***************** Version 3 *****************
* User: Andy Date: 22/06/01 Time: 9:50
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Made class declaration "Rose friendly"
*
* ***************** Version 2 *****************
* User: Andy Date: 27/03/01 Time: 15:23
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* 1. Made the "Status" column optional
* 2. Modifications to allow use in the "Symbol Conflicts" property page
*
* ***************** Version 1 *****************
* User: Andy Date: 17/02/01 Time: 6:47
* Created in $/Projects/AddIns/ResOrg/ResOrgUtils
*
* ***************** Version 3 *****************
* User: Andy Date: 29/11/00 Time: 18:38
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Added file banners
*
* $Nokeywords: $
*
************************************************************************/
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ResOrgSymbolsListCtrl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CResOrgSymbolsListCtrl window
#define CResOrgSymbolsListCtrl_BASE CCJListCtrl
class RESORGUTILS_EXT_CLASS CResOrgSymbolsListCtrl : public CCJListCtrl
{
// Construction/Destruction
public:
CResOrgSymbolsListCtrl(void);
virtual ~CResOrgSymbolsListCtrl(void);
// Attributes
public:
int m_nSortColumn;
bool m_bSortAscending;
CResourceSymbolBuffer* m_pResourceSymbolBuffer;
CNGImageList m_ctrlImages;
BOOL m_bShowStatusColumn;
// Operations
public:
void Initialise( BOOL bFlatHeader = FALSE,
BOOL bShowStatusColumn = TRUE);
void AddSymbols(CResourceSymbolBuffer* pResourceSymbolBuffer);
BOOL AddSymbol(CResourceSymbol* pSymbol);
BOOL UpdateSymbol(CResourceSymbol* pSymbol);
BOOL RemoveSymbol(CResourceSymbol* pSymbol);
void RemoveAllSymbols(void);
BOOL Sort(void);
int FindSymbol(CResourceSymbol* pSymbol) const;
CResourceSymbol* LookupSelection(void) const;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CResOrgSymbolsListCtrl)
protected:
virtual void PreSubclassWindow(void);
//}}AFX_VIRTUAL
public:
virtual bool SortList(int nColumn, bool bAscending);
// Implementation
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CResOrgSymbolsListCtrl)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(__ResOrgSymbolsListCtrl_H__)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -