CUIUpdateMenu Class
class CUIUpdateMenu
This class implements the IUIUpdateTarget interface for menus.CUIUpdateMenu includes the following member functions CUIUpdateMenu, SetText, Enable, SetRadio, and SetCheck,
Defined in: UIUpdate.h
Class Members
CUIUpdateMenu(HMENU hMenu) : (HMENU hMenu)
Constructor-- create a new menu wrapper with an existing menu handle
operator HMENU()
Get the menu handle
HMENU GetMenu()
Get the menu handle
virtual void SetText(const UINT nCommandID, LPCTSTR lpsz)
Set the text for the menu
virtual void Enable(const UINT nCommandID, bool bEnable = true)
Enable or disable the menu item
virtual void SetRadio(const UINT nCommandID, bool bSetCheck = true)
Set or unset the radio button within the menu
virtual void SetCheck(const UINT nCommandID, int nState = 1)
Set or usnet the check within an menu item