?? 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 + -