crashrpt
Public Member Functions | Public Attributes | List of all members
WTL::CMenuT< t_bManaged > Class Template Reference

Public Member Functions

 CMenuT (HMENU hMenu=NULL)
 
CMenuT< t_bManaged > & operator= (HMENU hMenu)
 
void Attach (HMENU hMenuNew)
 
HMENU Detach ()
 
 operator HMENU () const
 
bool IsNull () const
 
BOOL IsMenu () const
 
BOOL CreateMenu ()
 
BOOL CreatePopupMenu ()
 
BOOL LoadMenu (ATL::_U_STRINGorID menu)
 
BOOL LoadMenuIndirect (const void *lpMenuTemplate)
 
BOOL DestroyMenu ()
 
BOOL DeleteMenu (UINT nPosition, UINT nFlags)
 
BOOL TrackPopupMenu (UINT nFlags, int x, int y, HWND hWnd, LPCRECT lpRect=NULL)
 
BOOL TrackPopupMenuEx (UINT uFlags, int x, int y, HWND hWnd, LPTPMPARAMS lptpm=NULL)
 
BOOL AppendMenu (UINT nFlags, UINT_PTR nIDNewItem=0, LPCTSTR lpszNewItem=NULL)
 
BOOL AppendMenu (UINT nFlags, HMENU hSubMenu, LPCTSTR lpszNewItem)
 
BOOL AppendMenu (UINT nFlags, UINT_PTR nIDNewItem, HBITMAP hBmp)
 
BOOL AppendMenu (UINT nFlags, HMENU hSubMenu, HBITMAP hBmp)
 
UINT CheckMenuItem (UINT nIDCheckItem, UINT nCheck)
 
UINT EnableMenuItem (UINT nIDEnableItem, UINT nEnable)
 
BOOL HiliteMenuItem (HWND hWnd, UINT uIDHiliteItem, UINT uHilite)
 
int GetMenuItemCount () const
 
UINT GetMenuItemID (int nPos) const
 
UINT GetMenuState (UINT nID, UINT nFlags) const
 
int GetMenuString (UINT nIDItem, LPTSTR lpString, int nMaxCount, UINT nFlags) const
 
int GetMenuStringLen (UINT nIDItem, UINT nFlags) const
 
BOOL GetMenuString (UINT nIDItem, BSTR &bstrText, UINT nFlags) const
 
CMenuHandle GetSubMenu (int nPos) const
 
BOOL InsertMenu (UINT nPosition, UINT nFlags, UINT_PTR nIDNewItem=0, LPCTSTR lpszNewItem=NULL)
 
BOOL InsertMenu (UINT nPosition, UINT nFlags, HMENU hSubMenu, LPCTSTR lpszNewItem)
 
BOOL InsertMenu (UINT nPosition, UINT nFlags, UINT_PTR nIDNewItem, HBITMAP hBmp)
 
BOOL InsertMenu (UINT nPosition, UINT nFlags, HMENU hSubMenu, HBITMAP hBmp)
 
BOOL ModifyMenu (UINT nPosition, UINT nFlags, UINT_PTR nIDNewItem=0, LPCTSTR lpszNewItem=NULL)
 
BOOL ModifyMenu (UINT nPosition, UINT nFlags, HMENU hSubMenu, LPCTSTR lpszNewItem)
 
BOOL ModifyMenu (UINT nPosition, UINT nFlags, UINT_PTR nIDNewItem, HBITMAP hBmp)
 
BOOL ModifyMenu (UINT nPosition, UINT nFlags, HMENU hSubMenu, HBITMAP hBmp)
 
BOOL RemoveMenu (UINT nPosition, UINT nFlags)
 
BOOL SetMenuItemBitmaps (UINT nPosition, UINT nFlags, HBITMAP hBmpUnchecked, HBITMAP hBmpChecked)
 
BOOL CheckMenuRadioItem (UINT nIDFirst, UINT nIDLast, UINT nIDItem, UINT nFlags)
 
BOOL GetMenuItemInfo (UINT uItem, BOOL bByPosition, LPMENUITEMINFO lpmii) const
 
BOOL SetMenuItemInfo (UINT uItem, BOOL bByPosition, LPMENUITEMINFO lpmii)
 
BOOL InsertMenuItem (UINT uItem, BOOL bByPosition, LPMENUITEMINFO lpmii)
 
UINT GetMenuDefaultItem (BOOL bByPosition=FALSE, UINT uFlags=0U) const
 
BOOL SetMenuDefaultItem (UINT uItem=(UINT) -1, BOOL bByPosition=FALSE)
 
BOOL GetMenuItemRect (HWND hWnd, UINT uItem, LPRECT lprcItem) const
 
int MenuItemFromPoint (HWND hWnd, POINT point) const
 
BOOL SetMenuContextHelpId (DWORD dwContextHelpId)
 
DWORD GetMenuContextHelpId () const
 

Public Attributes

HMENU m_hMenu
 

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