monitordir.h
来自「《windows程序设计》王艳平版的书籍源代码」· C头文件 代码 · 共 40 行
H
40 行
///////////////////////////////////////////
// MonitorDir.h文件
#include <afxwin.h>
#include <afxcmn.h> // 为了使用CStatusBarCtrl类
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
};
class CMonitorDialog : public CDialog
{
public:
CMonitorDialog(CWnd* pParentWnd = NULL);
~CMonitorDialog();
protected:
// 向输出窗口添加文本
void AddStringToList(LPCTSTR lpszString);
// 监视线程
friend UINT MonitorThread(LPVOID lpParam);
CStatusBarCtrl m_bar; // 一个状态栏对象
HANDLE m_hEvent; // 用于占位的事件对象句柄
HANDLE m_arhChange[6]; // 改变通知事件的6个句柄
BOOL m_bExit; // 指示监视线程是否退出
protected:
virtual BOOL OnInitDialog();
virtual void OnCancel();
afx_msg void OnBrowser();
afx_msg void OnStart();
afx_msg void OnStop();
afx_msg void OnClear();
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?