www.pudn.com > DiskIOForC_class.rar > DiskIOView.h
// DiskIOView.h : interface of the CDiskIOView class
//
/////////////////////////////////////////////////////////////////////////////
#include "diskopt.h"
#if !defined(AFX_DISKIOVIEW_H__EC2C69CD_E965_11D5_97B8_00E04C6884D3__INCLUDED_)
#define AFX_DISKIOVIEW_H__EC2C69CD_E965_11D5_97B8_00E04C6884D3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct tagDISKINFO
{
unsigned char drive;
unsigned char head;
unsigned char track;
unsigned char sector;
unsigned char nsectors;
}DISKINFO,*pDISKINFO;
class CDiskIOView : public CFormView
{
private:
union{
unsigned char buffer[512];
char szID[2][100];
};
DISKINFO m_diskinfo;
CDiskOpt diskopt;
int text_x,text_y,win_x,win_y,cxChar,cyChar,absX,ascX;
protected: // create from serialization only
CDiskIOView();
DECLARE_DYNCREATE(CDiskIOView)
public:
//{{AFX_DATA(CDiskIOView)
enum{ IDD = IDD_DISKIO_FORM };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
CDiskIODoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDiskIOView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDiskIOView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
int IoOpt(int mode,CString& csError);
//{{AFX_MSG(CDiskIOView)
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnPaint();
afx_msg void OnButton4();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in DiskIOView.cpp
inline CDiskIODoc* CDiskIOView::GetDocument()
{ return (CDiskIODoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DISKIOVIEW_H__EC2C69CD_E965_11D5_97B8_00E04C6884D3__INCLUDED_)