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

工具条

开发平台:

Visual C++

  1. #if !defined(AFX_SDIMENUFRAMEWND_H__2F686113_A464_11D1_B0D4_00A0C94457BF__INCLUDED_)
  2. #define AFX_SDIMENUFRAMEWND_H__2F686113_A464_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. // MDIMenuFrameWnd.h : header file
  18. //
  19. #include "NGenericMenu.h"
  20. #pragma message ("Include "__FILE__)
  21. #ifndef NGTB_PROJECT
  22. #define NGTB_EXPORT __declspec(dllimport)
  23. #else
  24. #define NGTB_EXPORT __declspec(dllexport)
  25. #endif
  26. #undef AFX_DATA
  27. #define AFX_DATA NGTB_EXPORT
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CNSDIMenuFrameWnd window
  30. class CNSDIMenuFrameWnd : public CFrameWnd
  31. {
  32. DECLARE_DYNAMIC(CNSDIMenuFrameWnd)
  33. public:
  34. HMENU m_hDefaultMenu;
  35. CNGenericMenu m_wndMenu;
  36. NGTB_EXPORT CNSDIMenuFrameWnd();
  37. NGTB_EXPORT virtual ~CNSDIMenuFrameWnd();
  38. NGTB_EXPORT void EnableDocking(DWORD dwDockStyle);
  39. NGTB_EXPORT virtual BOOL LoadFrame( UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL );
  40. NGTB_EXPORT virtual void DrawMenuBar() { m_wndMenu.DrawMenuBar(); }
  41. protected:
  42. //{{AFX_VIRTUAL(CNSDIMenuFrameWnd)
  43. //}}AFX_VIRTUAL
  44. //{{AFX_MSG(CNSDIMenuFrameWnd)
  45. NGTB_EXPORT afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  46. NGTB_EXPORT afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
  47. NGTB_EXPORT afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  54. #undef AFX_DATA
  55. #define AFX_DATA
  56. #endif // !defined(AFX_MDIMENUFRAMEWND_H__2F686113_A464_11D1_B0D4_00A0C94457BF__INCLUDED_)