hotkeydlg.h

来自「PocketPC中注册热键的代码示例」· C头文件 代码 · 共 55 行

H
55
字号
// HotKeyDlg.h : header file
//

#if !defined(AFX_HOTKEYDLG_H__32CCC354_646D_42B7_9BC1_161E5DD49479__INCLUDED_)
#define AFX_HOTKEYDLG_H__32CCC354_646D_42B7_9BC1_161E5DD49479__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CHotKeyDlg dialog

class CHotKeyDlg : public CDialog
{
// Construction
public:
	void RegisterHotKeys();
	void OutMessage(LPCTSTR szMessage);

	CHotKeyDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CHotKeyDlg)
	enum { IDD = IDD_HOTKEY_DIALOG };
	CEdit	m_ctrlEdit;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CHotKeyDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	LRESULT OnHotKey(WPARAM wParam, LPARAM lParam);
};

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

#endif // !defined(AFX_HOTKEYDLG_H__32CCC354_646D_42B7_9BC1_161E5DD49479__INCLUDED_)

⌨️ 快捷键说明

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