📄 resorgsymbolfileslistctrl.h
字号:
/************************************************************************
*
* Resource ID Organiser Core Library
*
* (c) Copyright 2000-2003 by Anna-Jayne Metcalfe (resorg@annasplace.me.uk)
* All rights reserved.
*
************************************************************************
*
* Filename : ResOrgSymbolFilesListCtrl.h
*
* Description : CResOrgSymbolFilesListCtrl - list control class for
* resource symbol files (Used in the "File" page of the
* File Properties Dialog when multiple files are opened)
*
* Compiler : Microsoft Visual C++ 6.0, Service Pack 3 or later
* Microsoft Visual C++ .NET 2002
*
* Target
* Environment : Windows 98/NT/2000/XP
*
* 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 Anna-Jayne 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.annasplace.me.uk/resorg 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/ResOrgCore/ResOrgSymbolFilesListCtrl.h $
* $Revision: 3 $
* $Date: 15/04/03 20:37 $
* $Author: Anna $
*
* $History: ResOrgSymbolFilesListCtrl.h $
*
* ***************** Version 3 *****************
* User: Anna Date: 15/04/03 Time: 20:37
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* 1. Removed unnecessary file guards (#pragma once works well enough)
* 2. Updated file banners
*
* ***************** Version 2 *****************
* User: Anna Date: 15/02/03 Time: 20:45
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* Now supports multiple selection
*
* ***************** Version 1 *****************
* User: Anna Date: 19/01/03 Time: 17:27
* Created in $/Projects/AddIns/ResOrg/ResOrgCore
* CResOrgSymbolFilesListCtrl - list control class for resource symbol
* files (Used in the "File" page of the File Properties Dialog when
* multiple files are opened)
*
* $Nokeywords: $
*
************************************************************************/
#pragma once
#include "ResourceSymbolManagerMultiFile.h"
/////////////////////////////////////////////////////////////////////////////
// CResOrgSymbolFilesListCtrl control
#define CResOrgSymbolFilesListCtrl_BASE CCJListCtrl
class RESORGCORE_EXT_CLASS CResOrgSymbolFilesListCtrl : public CCJListCtrl
{
// Construction/Destruction
public:
CResOrgSymbolFilesListCtrl(void);
virtual ~CResOrgSymbolFilesListCtrl(void);
// Attributes
public:
int m_nSortColumn;
bool m_bSortAscending;
CResourceSymbolManagerMultiFile* m_pResourceSymbolManager;
// Operations
public:
CResourceSymbolManagerMultiFile* GetSymbolManager(void) const
{ return m_pResourceSymbolManager; }
bool SetSymbolManager(CResourceSymbolManagerMultiFile* pResourceSymbolManager);
void Initialise(void);
void AddFiles(CResourceSymbolManagerMultiFile* pResourceSymbolManager);
bool AddFile(CResourceSymbolManager* pFile);
bool UpdateFile(CResourceSymbolManager* pFile);
bool UpdateAllFiles(void);
bool RemoveFile(CResourceSymbolManager* pFile);
void RemoveAllFiles(void);
bool Sort(void);
int FindFile(CResourceSymbolManager* pFile) const;
int GetSelection(CSymbolManagerPtrArray& rarrayManagers) const;
CResourceSymbolManager* GetFile(int nItem) const;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CResOrgSymbolFilesListCtrl)
protected:
virtual void PreSubclassWindow(void);
//}}AFX_VIRTUAL
public:
virtual bool SortList(int nColumn, bool bAscending);
// Implementation
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CResOrgSymbolFilesListCtrl)
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.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -