📄 test_intrdemodlg.h
字号:
// Test_intrdemoDlg.h : header file
//
#if !defined(AFX_TEST_INTRDEMODLG_H__72CD64E7_C151_46F1_AE55_F75E1310FD87__INCLUDED_)
#define AFX_TEST_INTRDEMODLG_H__72CD64E7_C151_46F1_AE55_F75E1310FD87__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_PRINTEVENT WM_USER+1
class Print_Event
{
public:
CString Message;
static HWND ViewHwnd; // View Hwnd
// Generate and send an event
static void SendEvent( CString msg)
{
if( ViewHwnd==NULL) return;
Print_Event* pEvent = new Print_Event;
pEvent->Message = msg;
::PostMessage( ViewHwnd, WM_PRINTEVENT, 0, (LPARAM)pEvent);
}
};
/////////////////////////////////////////////////////////////////////////////
// CTest_intrdemoDlg dialog
class CTest_intrdemoDlg : public CDialog
{
// Construction
public:
CTest_intrdemoDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CTest_intrdemoDlg();
// Dialog Data
//{{AFX_DATA(CTest_intrdemoDlg)
enum { IDD = IDD_TEST_INTRDEMO_DIALOG };
CListBox m_Event;
//}}AFX_DATA
HANDLE Thread1;
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTest_intrdemoDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTest_intrdemoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnDestroy();
//}}AFX_MSG
afx_msg LONG OnPrintEvent( UINT, LONG);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEST_INTRDEMODLG_H__72CD64E7_C151_46F1_AE55_F75E1310FD87__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -