Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ComMenu.h

Go to the documentation of this file.
00001 //
00002 // ComMenu.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_COMMENU_H__CF7CC23F_25E1_48A8_8957_B1787AF67599__INCLUDED_)
00023 #define AFX_COMMENU_H__CF7CC23F_25E1_48A8_8957_B1787AF67599__INCLUDED_
00024 
00025 #pragma once
00026 
00027 
00028 class CComMenu : public CComObject
00029 {
00030 // Construction
00031 public:
00032         CComMenu(HMENU hMenu, UINT nPosition = 0xFFFFFFFF);
00033         virtual ~CComMenu();
00034 
00035 // Attributes
00036 public:
00037         HMENU   m_hParent;
00038         HMENU   m_hMenu;
00039         UINT    m_nPosition;
00040 
00041 // Operations
00042 public:
00043         static ISMenu*  Wrap(HMENU hMenu, UINT nPosition = 0xFFFFFFFF);
00044 
00045 // ISMenu
00046 protected:
00047         BEGIN_INTERFACE_PART(SMenu, ISMenu)
00048                 DECLARE_DISPATCH()
00049                 STDMETHOD(get_Application)(IApplication FAR* FAR* ppApplication);
00050                 STDMETHOD(get_UserInterface)(IUserInterface FAR* FAR* ppUserInterface);
00051                 STDMETHOD(get__NewEnum)(IUnknown FAR* FAR* ppEnum);
00052                 STDMETHOD(get_Item)(VARIANT vIndex, ISMenu FAR* FAR* ppMenu);
00053                 STDMETHOD(get_Count)(LONG FAR* pnCount);
00054                 STDMETHOD(get_ItemType)(SMenuType FAR* pnType);
00055                 STDMETHOD(get_CommandID)(LONG FAR* pnCommandID);
00056                 STDMETHOD(put_CommandID)(LONG nCommandID);
00057                 STDMETHOD(get_Text)(BSTR FAR* psText);
00058                 STDMETHOD(put_Text)(BSTR sText);
00059                 STDMETHOD(get_HotKey)(BSTR FAR* psText);
00060                 STDMETHOD(put_HotKey)(BSTR sText);
00061                 STDMETHOD(Remove)();
00062                 STDMETHOD(InsertSeparator)(LONG nPosition);
00063                 STDMETHOD(InsertMenu)(LONG nPosition, BSTR sText, ISMenu FAR* FAR* ppMenu);
00064                 STDMETHOD(InsertCommand)(LONG nPosition, LONG nCommandID, BSTR sText, ISMenu FAR* FAR* ppMenu);
00065         END_INTERFACE_PART(SMenu)
00066 
00067         BEGIN_INTERFACE_PART(EnumVARIANT, IEnumVARIANT)
00068                 STDMETHOD(Next)(THIS_ DWORD celt, VARIANT FAR* rgvar, DWORD FAR* pceltFetched);
00069                 STDMETHOD(Skip)(THIS_ DWORD celt);
00070                 STDMETHOD(Reset)(THIS);
00071                 STDMETHOD(Clone)(THIS_ IEnumVARIANT FAR* FAR* ppenum);
00072                 UINT    m_nIndex;
00073         END_INTERFACE_PART(EnumVARIANT)
00074 
00075         DECLARE_INTERFACE_MAP()
00076 
00077 // Implementation
00078 protected:
00079         //{{AFX_MSG(CComMenu)
00080         //}}AFX_MSG
00081         //{{AFX_VIRTUAL(CComMenu)
00082         //}}AFX_VIRTUAL
00083 
00084         DECLARE_MESSAGE_MAP()
00085 };
00086 
00087 //{{AFX_INSERT_LOCATION}}
00088 
00089 #endif // !defined(AFX_COMMENU_H__CF7CC23F_25E1_48A8_8957_B1787AF67599__INCLUDED_)

Generated on Thu Dec 15 10:39:34 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2