ccMenuButton |
09/09/99 |
Author:
Daniel.Lindh@Home.se ICQ: 7983755 HOMEPAGE: home.bip.net/CyberCow Copyright © Cyber Cow 1995 - 1999. OverView |
Overview |
#include <ccMenuButton.h> Hierarchy Chart
|
Class Members | ||||||||
Properties Public:
Implementation Public:
|
ccMenuButton::clearMenu | ||||
void clearMenu(); Return Value:
Arguments:
Remarks: Clear the floating menu. Example: ccMenuButton m_handButton; m_handButton.SubclassDlgItem(IDC_HAND256, this); m_handButton.clearMenu(); |
ccMenuButton::addMenuItem | ||||||
void addMenuItem(CString asText, UINT nIDNewItem); Return Value:
Arguments:
Remarks: Add a menu item and associate it to a command ID. Example: ccMenuButton m_handButton; m_handButton.SubclassDlgItem(IDC_HAND256, this); m_handButton.clearMenu(); m_handButton.addMenuItem("open", ID_OPEN); |
ccMenuButton::enableMenuItemCheck | ||||||
bool enableMenuItemCheck(int aiMenuItem, BOOL abEnable); Return Value:
Arguments:
Remarks: Set or remove a check before a menu item. Example: ccMenuButton m_handButton; m_handButton.SubclassDlgItem(IDC_HAND256, this); m_handButton.clearMenu(); m_handButton.addMenuItem("open", ID_OPEN); m_handButton.enableMenuItemCheck( ID_OPEN, TRUE ); |
ccMenuButton::showMenu | ||||
int showMenu(); Return Value:
Arguments:
Remarks: Show the floating menu Example: void dialog::OnMenuButton { if ( m_handButton.showMenu() == ID_OPEN ) { ... } } |