⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hexshowdoc.h

📁 以二进制显示数据
💻 H
字号:
// HexShowDoc.h : interface of the CHexShowDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HEXSHOWDOC_H__6BBFC37F_C21C_11D5_9E62_84CA2B0F6922__INCLUDED_)
#define AFX_HEXSHOWDOC_H__6BBFC37F_C21C_11D5_9E62_84CA2B0F6922__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CHexShowDoc : public CDocument
{
protected: // create from serialization only
	CHexShowDoc();
	DECLARE_DYNCREATE(CHexShowDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHexShowDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL ReadFileAndProcess(CString& strLine,long lOffset);
	void Write(	unsigned char[10],int datalength,  long lOffset);

	
	int  ReadFiledata(long lOffset);

	int  font_data;
	int  font_data1;
	int  font_data2;
	int  font_tag;

	CFile* m_pHexFile;
	long m_lFileLength;
	int m_nBytesPerLine;//每行显示16个字节,每次读的字节数



	CFile* m_SaveFile;	
	CString  m_SaveFileData;

	
	
	virtual ~CHexShowDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CHexShowDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HEXSHOWDOC_H__6BBFC37F_C21C_11D5_9E62_84CA2B0F6922__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -