📄 test_pnpeventdlg.h
字号:
// Test_PnPEventDlg.h : header file
//
#if !defined(AFX_TEST_PNPEVENTDLG_H__CC2C402A_25E1_4B14_8527_77476E347F1C__INCLUDED_)
#define AFX_TEST_PNPEVENTDLG_H__CC2C402A_25E1_4B14_8527_77476E347F1C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTest_PnPEventDlg dialog
class CTest_PnPEventDlg : public CDialog
{
// Construction
public:
CTest_PnPEventDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CTest_PnPEventDlg();
// Dialog Data
//{{AFX_DATA(CTest_PnPEventDlg)
enum { IDD = IDD_TEST_PNPEVENT_DIALOG };
CButton m_Sendevent;
CListBox m_Events;
//}}AFX_DATA
HDEVNOTIFY m_hInterfaceNotification;
HDEVNOTIFY m_hHandleNotification;
HANDLE m_hDevice;
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTest_PnPEventDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTest_PnPEventDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg BOOL OnDeviceChange(UINT nEventType, DWORD dwData);
afx_msg void OnSendEvent();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
VOID OnNewDevice(const CString& devname, const GUID* guid);
BOOL HandleDeviceChange(DWORD evtype, PDEV_BROADCAST_DEVICEINTERFACE dip);
BOOL HandleDeviceChange(DWORD evtype, PDEV_BROADCAST_HANDLE dhp);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEST_PNPEVENTDLG_H__CC2C402A_25E1_4B14_8527_77476E347F1C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -