Windows C++ Library
Public Member Functions | Protected Attributes | Private Member Functions
CMenu Class Reference

#include <Menu.hpp>

Inheritance diagram for CMenu:
CFrameMenu CPopupMenu

List of all members.

Public Member Functions

 CMenu ()
 CMenu (HMENU hMenu)
virtual ~CMenu ()
HMENU Handle () const
void InsertCmd (uint nPos, uint iCmdID, const tchar *pszText)
void AppendCmd (uint iCmdID, const tchar *pszText)
void SetCmdText (uint iCmdID, const tchar *pszText)
void EnableCmd (uint iCmdID, bool bEnable=true)
void CheckCmd (uint iCmdID, bool bCheck=true)
void RemoveCmd (uint iCmdID)
int ItemCount () const
void EnableItem (int nPos, bool bEnable=true)
CString GetItemText (int nPos)
CPopupMenu GetItemPopup (int nPos)
void SetItemPopup (int nPos, const CPopupMenu &rMenu, const tchar *pszText)
void RemoveItem (int nPos)

Protected Attributes

HMENU m_hMenu

Private Member Functions

 CMenu (const CMenu &)
CMenuoperator= (const CMenu &)

Constructor & Destructor Documentation

CMenu::CMenu ( HMENU  hMenu)
CMenu::~CMenu ( ) [virtual]
CMenu::CMenu ( const CMenu ) [private]

Member Function Documentation

HMENU CMenu::Handle ( ) const [inline]
void CMenu::InsertCmd ( uint  nPos,
uint  iCmdID,
const tchar *  pszText 
) [inline]
void CMenu::AppendCmd ( uint  iCmdID,
const tchar *  pszText 
) [inline]
void CMenu::SetCmdText ( uint  iCmdID,
const tchar *  pszText 
) [inline]
void CMenu::EnableCmd ( uint  iCmdID,
bool  bEnable = true 
) [inline]
void CMenu::CheckCmd ( uint  iCmdID,
bool  bCheck = true 
) [inline]
void CMenu::RemoveCmd ( uint  iCmdID) [inline]
int CMenu::ItemCount ( ) const [inline]
void CMenu::EnableItem ( int  nPos,
bool  bEnable = true 
) [inline]
CString CMenu::GetItemText ( int  nPos)
void CMenu::SetItemPopup ( int  nPos,
const CPopupMenu rMenu,
const tchar *  pszText 
)
void CMenu::RemoveItem ( int  nPos) [inline]
CMenu& CMenu::operator= ( const CMenu ) [private]

Member Data Documentation

HMENU CMenu::m_hMenu [protected]

The documentation for this class was generated from the following files: