📄 testdlg.h
字号:
// testDlg.h : header file
//
#if !defined(AFX_TESTDLG_H__93CB1A4C_98A5_41E5_AFA7_383F1B6087FF__INCLUDED_)
#define AFX_TESTDLG_H__93CB1A4C_98A5_41E5_AFA7_383F1B6087FF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define MYWM_NOTIFYICON WM_USER+100
#define MYTIP "独钓寒江雪"
#define MYICON 1000 //
#define WM_MYMESSAGE WM_USER+101
/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog
class CTestDlg : public CDialog
{
// Construction
public:
CTestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTestDlg)
enum { IDD = IDD_TEST_DIALOG };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnButtonSave();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnAppExit();
afx_msg void OnAppShow();
afx_msg void OnDestroy();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnButton4();
afx_msg void OnBtnMsg();
//}}AFX_MSG
///Taskbar消息映射
afx_msg LRESULT OnMyNotifyIcon(WPARAM wParam,LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
//-------------------------------------------------------------------------
//添加系统栏图标
int TaskBarAddIcon(int iFlag);
//删除系统栏图标
int TaskBarDeleteIcon();
//开始钩
void HookStart();
//停止
void HookStop();
//退出程序
void ExitApp();
//隐藏窗口
//彻底隐藏,连系统栏图标都没有
//必须以热键呼叫才能显示界面
void HideMe();
//注册系统热键
void RegSysHotkey();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTDLG_H__93CB1A4C_98A5_41E5_AFA7_383F1B6087FF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -