📄 modifysysmenudlgdlg.h
字号:
/////////////////////////////////////////////////////////////////////////////
// Project:MODIFYSYSMENUDLG
// Author:NorthTibet
// Date:星期五, 五月 02, 2003
// Description:示范如何修改系统菜单以及如何利用系统托盘机制隐藏对话框。
//
/////////////////////////////////////////////////////////////////////////////
// ModifySysMenuDlgDlg.h : header file
//
#if !defined(AFX_MODIFYSYSMENUDLGDLG_H__B5755398_8F2A_448D_85DE_A43B0F116BA8__INCLUDED_)
#define AFX_MODIFYSYSMENUDLGDLG_H__B5755398_8F2A_448D_85DE_A43B0F116BA8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "systemtray.h"
//we need a custom message for receiving notifications from the tray
#define WM_USER_TRAY_NOTIFICATION (WM_USER+0x101)
#define IDM_EXIT 0x0020
/////////////////////////////////////////////////////////////////////////////
// CModifySysMenuDlgDlg dialog
class CModifySysMenuDlgDlg : public CDialog
{
// Construction
public:
CModifySysMenuDlgDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CModifySysMenuDlgDlg)
enum { IDD = IDD_MODIFYSYSMENUDLG_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CModifySysMenuDlgDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
public:
BOOL start_minimized;
// Implementation
protected:
HICON m_hIcon;
CSystemTray m_trayIcon;;
// Generated message map functions
//{{AFX_MSG(CModifySysMenuDlgDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnAbout();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
afx_msg void OnExit();
afx_msg void OnShow();
virtual void OnCancel();
virtual void OnOK();
//}}AFX_MSG
afx_msg LONG OnTrayNotification( WPARAM wparam, LPARAM lparam );
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MODIFYSYSMENUDLGDLG_H__B5755398_8F2A_448D_85DE_A43B0F116BA8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -