📄 osdlg.h
字号:
// osDlg.h : header file
//
#if !defined(AFX_OSDLG_H__84728559_ABAF_446B_B192_2CB410090E48__INCLUDED_)
#define AFX_OSDLG_H__84728559_ABAF_446B_B192_2CB410090E48__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
//时间中断消息
#define MM_INITREE (WM_USER+101)
#define WM_TIME_HALT (WM_USER+100)
#include "ShowosDlg.h"
#include "Cpu.h"
#include "Memory.h"
#include "Disk.h"
/////////////////////////////////////////////////////////////////////////////
// COsDlg dialog
class COsDlg : public CDialog
{
public:
int dwt;//每1/100秒自加
double dwtime;
CDisk disk;
CShowosDlg osdlg;
CCpu * pcpu;
CMemory * pmemory;
// Construction
public:
COsDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(COsDlg)
enum { IDD = IDD_OS_DIALOG };
long m_Password;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COsDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
public:
bool UpdataShowInfo(); //更新显示磁盘分区表信息
bool DiskTree(int index,HTREEITEM hRoot); //替归更新磁盘树形显示,
bool UpdataDiskTree(); //更新磁盘树形显示
bool CD(CString strin,CString *strError); //执行CD命令
bool PUB(CString strin,CString *strshow); //执行pub命令/显示目录
bool Create(CString strin,CString *strError); //执行Create命令
bool Makdir(CString strin,CString *strError); //执行Makdir命令
bool Fdisk(CString strin,CString *strshow); //分区
bool Delete(CString strin,CString *strshow); //删除文件
bool Rdir(CString strin,CString *strshow); //删除空目录
bool Deldir(CString strin,CString *strshow); //删除空或非空目录
bool Type(CString strin,CString *strshow); //显示文件
bool Edit(CString strin,CString *strshow); //编辑文件
private:
void Carryout(); //执行命令函数
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(COsDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnShowOs();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTimeHalt(WPARAM wParam,LPARAM lParam);
afx_msg void OnMmtree(); //初始Tree列表
afx_msg void OnChangeEdit1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OSDLG_H__84728559_ABAF_446B_B192_2CB410090E48__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -