?? modifysysmenudlgdlg.h
字號(hào):
/////////////////////////////////////////////////////////////////////////////
// Project:MODIFYSYSMENUDLG
// Author:NorthTibet
// Date:星期五, 五月 02, 2003
// Description:示范如何修改系統(tǒng)菜單以及如何利用系統(tǒng)托盤機(jī)制隱藏對(duì)話框。
//
/////////////////////////////////////////////////////////////////////////////
// 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_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -