📄 ngenericpopup.h
字号:
#if !defined(AFX_NGENERICPOPUP_H__AD9E2C63_A3B6_11D1_B0D4_00A0C94457BF__INCLUDED_)
#define AFX_NGENERICPOPUP_H__AD9E2C63_A3B6_11D1_B0D4_00A0C94457BF__INCLUDED_
/*
Copyright (C) 1998 Tony Hoyle (tmh@netfusion.co.uk)
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program;
if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// NGenericPopup.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CNGenericPopup window
class CNGenericToolBar;
class CNGenericPopup : public CWnd
{
DECLARE_DYNAMIC(CNGenericPopup);
public:
CNGenericPopup();
virtual ~CNGenericPopup();
BOOL ShowMenu(/*int nOrient, */BOOL bFromKey, /*CNGenericToolBar* pToolbar, */int x, int y, CWnd* pParent, HMENU hMenu);
BOOL HideMenu();
protected:
CWnd* m_pParent;
CMenu* m_pMenu;
CMenu m_cSubMenu;
BOOL m_bIsAttached;
CPoint m_Point;
protected:
//{{AFX_VIRTUAL(CNGenericPopup)
//}}AFX_VIRTUAL
//{{AFX_MSG(CNGenericPopup)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
enum
{
POP_MENU_LEFT,
POP_MENU_RIGHT,
POP_MENU_TOP,
POP_MENU_BOTTOM
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NGENERICPOPUP_H__AD9E2C63_A3B6_11D1_B0D4_00A0C94457BF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -