📄 moduleview.h
字号:
#if !defined(AFX_MODULEVIEW_H__5D956D17_9AD4_4F3C_9460_D88805179B2A__INCLUDED_)
#define AFX_MODULEVIEW_H__5D956D17_9AD4_4F3C_9460_D88805179B2A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ModuleView.h : header file
//
#include "mmi_resource_def.h"
#include "ResourceEditor.h"
#include "PrjFactory.h"
/////////////////////////////////////////////////////////////////////////////
// CModuleView view
class CModuleView : public CListView
{
protected:
CModuleView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CModuleView)
// Attributes
public:
MMI_MODULE_TOTAL_INFO_T module_total_info;
// Operations
public:
void AddModuleToList(LPCTSTR module_id);
BOOL SaveResourceFile(LPCTSTR pszFileName);
BOOL SaveResourceResFile(LPCTSTR pszFileName);
BOOL SaveResourceBinFile(LPCTSTR pszFileName);
BOOL SaveResourceMapFile(LPCTSTR pszFileName);
void SaveModuleId(LPCTSTR pszFileName);
BOOL WriteModuleHFile(LPCTSTR pszFileName);
CString GetResFileName( BOOL bOpen = TRUE ); //{ return _T(""); }
BOOL IsModuleListEmpty(void);
BOOL MapPrjInfo(LPCTSTR lpszPrjName, FILE *pMapFile, int *pSize);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CModuleView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CModuleView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CModuleView)
afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnOutClear();
afx_msg void OnOutGoto();
afx_msg void OnModuleDel();
afx_msg void OnModuleDown();
afx_msg void OnModuleUp();
afx_msg void OnModuleAdd();
afx_msg void OnUpdateModuleAdd(CCmdUI* pCmdUI);
//}}AFX_MSG
afx_msg void OnAddToList( WPARAM wParam, LPARAM lParam );
DECLARE_MESSAGE_MAP()
protected:
uint32 CalcModuleSize(LPCTSTR filename);
void RecordMoudleInfo(void);
__inline DWORD Addr4ByteAlign( DWORD dwAddr )
{
return ( (dwAddr + 3) & ~3 );
}
protected:
private:
int m_nCurItem;
CPrjFactory * m_pPrjFactory;
static const _TCHAR SZ_FILE_EXT[];
static const _TCHAR SZ_FILTER[];
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MODULEVIEW_H__5D956D17_9AD4_4F3C_9460_D88805179B2A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -