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

📄 harddiskview.h

📁 小的取硬盘信息的程序
💻 H
字号:
// harddiskView.h : interface of the CHarddiskView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HARDDISKVIEW_H__FFF368D5_18D8_4C8B_9698_849A0DEE17FC__INCLUDED_)
#define AFX_HARDDISKVIEW_H__FFF368D5_18D8_4C8B_9698_849A0DEE17FC__INCLUDED_

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


class CHarddiskView : public CFormView
{
protected: // create from serialization only
	CHarddiskView();
	DECLARE_DYNCREATE(CHarddiskView)

public:
	//{{AFX_DATA(CHarddiskView)
	enum { IDD = IDD_HARDDISK_FORM };
	CRichEditCtrl	m_editOut;
	//}}AFX_DATA

// Attributes
public:
	CHarddiskDoc* GetDocument();

	void GetDiskInfo();
	void Out(const char *fmt, ...);
	//用命令行方式获取网卡MAC地址
	BOOL GetMacByCmd(char *lpszMac);
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHarddiskView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // 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 OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CHarddiskView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CHarddiskView)
	afx_msg void OnButtonGet();
	afx_msg void OnButtonGetmac();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in harddiskView.cpp
inline CHarddiskDoc* CHarddiskView::GetDocument()
   { return (CHarddiskDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_HARDDISKVIEW_H__FFF368D5_18D8_4C8B_9698_849A0DEE17FC__INCLUDED_)

⌨️ 快捷键说明

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