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

📄 wdtsampledlg.h

📁 监测系统源代码
💻 H
字号:
// WDTSampleDlg.h : header file
//

#if !defined(AFX_WDTSAMPLEDLG_H__CD21E097_7BB5_441F_BFCF_84F2295E2939__INCLUDED_)
#define AFX_WDTSAMPLEDLG_H__CD21E097_7BB5_441F_BFCF_84F2295E2939__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CWDTSampleDlg dialog

class CWDTSampleDlg : public CDialog
{
// Construction
public:
	BOOL m_bInitOk;
	static void _stdcall MyFunc(void *pContext);	// User function.

	HANDLE m_hMyEvent;
	BOOL m_ThreadExit;
	BOOL PreTranslateMessage(MSG* pMsg);
	
	CWDTSampleDlg(CWnd* pParent = NULL);	// standard constructor
	//friend DWORD WINAPI ThreadFunc(LPVOID lpParam);
// Dialog Data
	//{{AFX_DATA(CWDTSampleDlg)
	enum { IDD = IDD_WDTSAMPLE_DIALOG };
	CButton	m_CheckAuto;
	int		m_nRadio_event;
	int		m_nRadio_irq;
	int		m_nEdit_time;
	int		m_nRadio_unit;
	int		m_nEdit_irq;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWDTSampleDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int m_time;
	int m_unit;
	
	BOOL m_bWDTStart;
	HICON m_hIcon;
	BOOL m_bCheck;
	BOOL m_bTimer1;
	BOOL m_bTimer2;
	BOOL m_bTimer3;
	BOOL m_bRadio10;
	BOOL m_bWDTCreated;
	BOOL m_Initialized;

	bool CreateIntWDT();

	// Generated message map functions
	//{{AFX_MSG(CWDTSampleDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnRadio3();
	afx_msg void OnRadio4();
	afx_msg void OnRadio5();
	afx_msg void OnRadio6();
	afx_msg void OnRadio7();
	afx_msg void OnRadio8();
	afx_msg void OnRadio1();
	afx_msg void OnRadio2();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonManual();
	afx_msg void OnButtonStop();
	afx_msg void OnRadio10();
	afx_msg void OnRadio9();
	afx_msg void OnCheckAuto();
	afx_msg void OnButtonHelp();
	afx_msg void OnNotifyIcon(WPARAM wParam, LPARAM lParam);
	afx_msg void OnButtonWdtCreate();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_WDTSAMPLEDLG_H__CD21E097_7BB5_441F_BFCF_84F2295E2939__INCLUDED_)

⌨️ 快捷键说明

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