www.pudn.com > EventExplorer.rar > EventExplorerDlg.h
// EventExplorerDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CEventExplorerDlg dialog
class CEventExplorerDlg;
class RunningThread {
public:
RunningThread(CEdit * id, CEdit * handle, CProgressCtrl * progress, CEventExplorerDlg * dlg)
{ c_ID = id; c_Handle = handle;
c_Progress = progress; dialog = dlg;
}
void Create();
CEdit * c_ID;
CEdit * c_Handle;
CWinThread * thread;
CEventExplorerDlg * dialog;
CProgressCtrl * c_Progress;
static UINT handler(LPVOID me);
void runMe();
};
class CEventExplorerDlg : public CDialog
{
// Construction
public:
CEventExplorerDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CEventExplorerDlg)
enum { IDD = IDD_EVENT_EXPLORER_DIALOG };
CEdit c_ID2;
CEdit c_ID1;
CEdit c_Handle2;
CEdit c_Handle1;
CButton c_Clear;
CEdit c_CreateEvent;
CButton c_Signalled;
CProgressCtrl c_Running2;
CProgressCtrl c_Running1;
CButton c_Stop;
CButton c_SetEvent;
CButton c_ResetEvent;
CButton c_PulseEvent;
CButton c_ManualReset;
CButton c_Start;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEventExplorerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
public:
BOOL running;
HANDLE event;
protected:
RunningThread * thread1;
RunningThread * thread2;
BOOL manual;
BOOL signalled;
void runMe();
HICON m_hIcon;
void enableControls();
void showCreateEvent();
// Generated message map functions
//{{AFX_MSG(CEventExplorerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();
afx_msg void OnManualReset();
afx_msg void OnPulseevent();
afx_msg void OnResetevent();
afx_msg void OnSetevent();
afx_msg LRESULT OnCloseHandle(WPARAM, LPARAM);
afx_msg void OnStop();
afx_msg LRESULT OnStepIt(WPARAM id, LPARAM);
afx_msg void OnClear();
afx_msg void OnSignalled();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};