📄 resorgsymbolslistview.h
字号:
#if !defined(__ResOrgSymbolsListView_H__)
#define __ResOrgSymbolsListView_H__
/************************************************************************
*
* Resource ID Organiser Utility Library
*
* (c) Copyright 2000 by Andy Metcalfe (andy.metcalfe@lineone.net)
* All rights reserved.
*
************************************************************************
*
* Filename : ResOrgSymbolsListView.h
*
* Description : CResOrgSymbolsListView - list view 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/ResOrgSymbolsListView.h $
* $Revision: 6 $
* $Date: 22/06/01 9:50 $
* $Author: Andy $
*
* $History: ResOrgSymbolsListView.h $
*
* ***************** Version 6 *****************
* User: Andy Date: 22/06/01 Time: 9:50
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Made class declaration "Rose friendly"
*
* ***************** Version 5 *****************
* User: Andy Date: 26/05/01 Time: 15:23
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Added OnHelpHitTest() override
*
* ***************** Version 4 *****************
* User: Andy Date: 2/04/01 Time: 17:40
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Added "Autosize Columns" context menu entry
*
* ***************** Version 3 *****************
* User: Andy Date: 17/02/01 Time: 7:00
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* 1. Moved generic list control code into a new class
* (CResOrgSymbolsListCtrl)
* 2. Class renamed for consistancy
* 3. Added a "Status" column
* 4. Show modified symbols in blue, and read-only symbols in grey
* [handled by CResOrgSymbolsListCtrl]
* 5. Use new wrapper methods in the document to manipulate its
* CResourceSymbolBuffer object rather than accessing it directly. This
* allows most of the view hints to be moved to the document
*
* ***************** Version 2 *****************
* User: Andy Date: 29/11/00 Time: 18:38
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Added file banners
*
* $Nokeywords: $
*
************************************************************************/
// ResOrgSymbolsListView.h : interface of the CResOrgSymbolsListView class
//
/////////////////////////////////////////////////////////////////////////////
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CResOrgSymbolsDoc;
class CResourceSymbol;
#include "ResOrgSymbolsListCtrl.h"
#define CResOrgSymbolsListView_BASE CView
class RESORGUTILS_EXT_CLASS CResOrgSymbolsListView : public CView
{
DECLARE_DYNCREATE(CResOrgSymbolsListView)
protected: // create from serialization only
CResOrgSymbolsListView(void);
virtual ~CResOrgSymbolsListView(void);
// Attributes
protected:
CResOrgSymbolsListCtrl m_ctrlSymbols;
BOOL m_bInitialised;
// Operations
public:
CResOrgSymbolsDoc* GetDocument(void);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CResOrgSymbolsListView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(void); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
#ifdef _DEBUG
virtual void AssertValid(void) const;
virtual void Dump(CDumpContext& dc) const;
#endif
void CResOrgSymbolsListView::Initialise(void);
void FillListCtrl(void);
protected:
BOOL ConfirmDelete(const CString& sSymbol = _T("") ) const;
// Generated message map functions
protected:
//{{AFX_MSG(CResOrgSymbolsListView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnCmdAutosizeColumns(void);
afx_msg void OnCmdEditSelectAll(void);
afx_msg void OnUpdateEditSelectAll(CCmdUI* pCmdUI);
afx_msg void OnCmdSymbolProperties(void);
afx_msg void OnUpdateSymbolProperties(CCmdUI* pCmdUI);
afx_msg void OnCmdAddSymbol(void);
afx_msg void OnCmdDeleteSymbol(void);
afx_msg void OnUpdateDeleteSymbol(CCmdUI* pCmdUI);
//}}AFX_MSG
afx_msg LRESULT OnHelpHitTest(WPARAM, LPARAM);
afx_msg void OnItemChangedListCtrl(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDblClickListCtrl(NMHDR* pNMHDR, LRESULT* pResult);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ResourceOrganiserView.cpp
inline CResOrgSymbolsDoc* CResOrgSymbolsListView::GetDocument()
{ return (CResOrgSymbolsDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(__ResOrgSymbolsListView_H__)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -