NGenericPopup.h
上传用户:libwxy
上传日期:2007-01-02
资源大小:200k
文件大小:2k
源码类别:

工具条

开发平台:

Visual C++

  1. #if !defined(AFX_NGENERICPOPUP_H__AD9E2C63_A3B6_11D1_B0D4_00A0C94457BF__INCLUDED_)
  2. #define AFX_NGENERICPOPUP_H__AD9E2C63_A3B6_11D1_B0D4_00A0C94457BF__INCLUDED_
  3. /*
  4. Copyright (C) 1998 Tony Hoyle (tmh@netfusion.co.uk)
  5. This program is free software; you can redistribute it and/or modify it under the terms
  6. of the GNU General Public License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  9. without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License along with this program;
  12. if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  13. */
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // NGenericPopup.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CNGenericPopup window
  21. class CNGenericToolBar;
  22. class CNGenericPopup : public CWnd
  23. {
  24. DECLARE_DYNAMIC(CNGenericPopup);
  25. public:
  26. CNGenericPopup();
  27. virtual ~CNGenericPopup();
  28. BOOL ShowMenu(/*int nOrient, */BOOL bFromKey, /*CNGenericToolBar* pToolbar, */int x, int y, CWnd* pParent, HMENU hMenu);
  29. BOOL HideMenu();
  30. protected:
  31. CWnd* m_pParent;
  32. CMenu* m_pMenu;
  33. CMenu m_cSubMenu;
  34. BOOL m_bIsAttached;
  35. CPoint m_Point;
  36. protected:
  37. //{{AFX_VIRTUAL(CNGenericPopup)
  38. //}}AFX_VIRTUAL
  39. //{{AFX_MSG(CNGenericPopup)
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. };
  43. enum
  44. {
  45. POP_MENU_LEFT,
  46. POP_MENU_RIGHT,
  47. POP_MENU_TOP,
  48. POP_MENU_BOTTOM
  49. };
  50. /////////////////////////////////////////////////////////////////////////////
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  53. #endif // !defined(AFX_NGENERICPOPUP_H__AD9E2C63_A3B6_11D1_B0D4_00A0C94457BF__INCLUDED_)