| 1 | #if !defined(AFX_VIEWERDLG_H__037EC108_598D_413C_B5B7_A8270562C2E6__INCLUDED_) |
|---|
| 2 | #define AFX_VIEWERDLG_H__037EC108_598D_413C_B5B7_A8270562C2E6__INCLUDED_ |
|---|
| 3 | |
|---|
| 4 | #if _MSC_VER > 1000 |
|---|
| 5 | #pragma once |
|---|
| 6 | #endif // _MSC_VER > 1000 |
|---|
| 7 | // ViewerDlg.h : header file |
|---|
| 8 | // |
|---|
| 9 | |
|---|
| 10 | ///////////////////////////////////////////////////////////////////////////// |
|---|
| 11 | // CViewerDlg dialog |
|---|
| 12 | |
|---|
| 13 | class CViewerDlg : public CDialog |
|---|
| 14 | { |
|---|
| 15 | // Construction |
|---|
| 16 | public: |
|---|
| 17 | CViewerDlg(CWnd* pParent = NULL); // standard constructor |
|---|
| 18 | CString m_strFileName; |
|---|
| 19 | CString m_strMessage; |
|---|
| 20 | |
|---|
| 21 | // Dialog Data |
|---|
| 22 | //{{AFX_DATA(CViewerDlg) |
|---|
| 23 | enum { IDD = IDD_DIALOG_VIEWER }; |
|---|
| 24 | CRichEditCtrl m_recView; |
|---|
| 25 | DWORD m_dwCurrentCluster; |
|---|
| 26 | //}}AFX_DATA |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | // Overrides |
|---|
| 30 | // ClassWizard generated virtual function overrides |
|---|
| 31 | //{{AFX_VIRTUAL(CViewerDlg) |
|---|
| 32 | protected: |
|---|
| 33 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|---|
| 34 | //}}AFX_VIRTUAL |
|---|
| 35 | |
|---|
| 36 | // Implementation |
|---|
| 37 | protected: |
|---|
| 38 | BOOL DisplayCluster(DWORD dwCluster, DWORD dwSpecial = 0); |
|---|
| 39 | |
|---|
| 40 | inline void AddDataLine(DWORD dwOffset, DWORD *pdwData, LPCTSTR szString); |
|---|
| 41 | inline int AppendText(LPCTSTR szString); |
|---|
| 42 | inline void AppendFormattedText(LPCTSTR szString, CHARFORMAT& cf); |
|---|
| 43 | |
|---|
| 44 | HANDLE m_hFile; |
|---|
| 45 | DWORD m_dwClusterSize; |
|---|
| 46 | |
|---|
| 47 | // Generated message map functions |
|---|
| 48 | //{{AFX_MSG(CViewerDlg) |
|---|
| 49 | afx_msg void OnButtonFirst(); |
|---|
| 50 | afx_msg void OnButtonGo(); |
|---|
| 51 | afx_msg void OnButtonLast(); |
|---|
| 52 | afx_msg void OnButtonNext(); |
|---|
| 53 | afx_msg void OnButtonPrevious(); |
|---|
| 54 | virtual BOOL OnInitDialog(); |
|---|
| 55 | afx_msg void OnDestroy(); |
|---|
| 56 | //}}AFX_MSG |
|---|
| 57 | DECLARE_MESSAGE_MAP() |
|---|
| 58 | }; |
|---|
| 59 | |
|---|
| 60 | //{{AFX_INSERT_LOCATION}} |
|---|
| 61 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 62 | |
|---|
| 63 | #endif // !defined(AFX_VIEWERDLG_H__037EC108_598D_413C_B5B7_A8270562C2E6__INCLUDED_) |
|---|