Rhino C++ API
8.13
|
#include <RhinoSdkUiXML.h>
Public Member Functions | |
CRuiUpdateUi (UUID idFile, UUID idMenu, UUID idItem, HMENU hMenu, int nIndex) | |
bool | Checked () const |
void | Enable (bool bOn=true) |
bool | Enabled () const |
UUID | FileUUID () const |
bool | IsValid () const |
HMENU | Menu () const |
UINT | MenuItemID () const |
int | MenuItemIndex () const |
UUID | MenuItemUUID () const |
UUID | MenuUUID () const |
bool | RadioChecked () const |
void | SetCheck (bool bCheck=true) |
void | SetRadio (bool bOn=false) |
void | SetText (const wchar_t *sText) |
const wchar_t * | Text () const |
Public Attributes | |
class CRhDockBarExtension * | m__update_ui_extension |
Protected Member Functions | |
void | SetCheckState (bool bCheck) |
Protected Attributes | |
HMENU | m_hMenu |
Handle to the menu containing this menu item. More... | |
UUID | m_idFile |
File ID. More... | |
UUID | m_idItem |
Menu item ID. More... | |
UUID | m_idMenu |
Menu ID. More... | |
UINT | m_nID |
Menu item ID. More... | |
int | m_nIndex |
Zero based menu item index. More... | |
int | m_nItemCount |
Number of items in this menu, used to validate index. More... | |
ON_wString | m_wText |
==========================================================================================
Description: This class provides an easy way to update a menu item. A reference to one of these is sent to CRuiOnUpdateMenuItems::OnUpdateMenuItem on a WM_INITMENUPOPUP event
See Also: MSDN Help for WM_INITMENUPOPUP MSDN help for CCmdUI CRuiOnUpdateMenuItems::OnUpdateMenuItem
CRuiUpdateUi::CRuiUpdateUi | ( | UUID | idFile, |
UUID | idMenu, | ||
UUID | idItem, | ||
HMENU | hMenu, | ||
int | nIndex | ||
) |
Description: Constructor
bool CRuiUpdateUi::Checked | ( | ) | const |
Description: Call this member function determine if the item is checked
Returns: Returns true if checked otherwise false
void CRuiUpdateUi::Enable | ( | bool | bOn = true | ) |
Description: Call this member function to enable or disable the user-interface item for this command.
Parameters: bOn [in] Set to true to enable the item, false to disable it
See Also: See CCmdUI::Enable in MSDN help file
bool CRuiUpdateUi::Enabled | ( | ) | const |
Description: Call this member function determine if the menu item is enabled
Returns: Returns true if enabled otherwise false
UUID CRuiUpdateUi::FileUUID | ( | ) | const |
Description: Call this member function get the UUID of the RUI file that owns this Windows menu item
Returns: Returns the UUID of the RUI file that owns this Windows menu item
bool CRuiUpdateUi::IsValid | ( | ) | const |
Description: Returns true if successfully initialized
HMENU CRuiUpdateUi::Menu | ( | ) | const |
Description: Call this member function to get the menu handle for the menu that owns this item
Returns: Return menu handle for the menu that owns this item
UINT CRuiUpdateUi::MenuItemID | ( | ) | const |
Description: Call this member function to get the menu item ID
Returns: Returns the menu item ID
int CRuiUpdateUi::MenuItemIndex | ( | ) | const |
Description: Call this member function to get the menu item index
Returns: Returns the menu item index
UUID CRuiUpdateUi::MenuItemUUID | ( | ) | const |
Description: Call this member function get the UUID of the RUI menu item associated with this Windows menu item
Returns: Returns the UUID of the RUI menu item that owns this associated with this Windows menu item
UUID CRuiUpdateUi::MenuUUID | ( | ) | const |
Description: Call this member function get the UUID of the RUI menu that owns this Windows menu item
Returns: Returns the UUID of the RUI menu that owns this Windows menu item
bool CRuiUpdateUi::RadioChecked | ( | ) | const |
Description: Call this member function determine if the radio button is checked
Returns: Returns true if checked otherwise false
void CRuiUpdateUi::SetCheck | ( | bool | bCheck = true | ) |
Description: Call this member function to set the user-interface item for this command to the appropriate check state.
Parameters: bCheck [in] Set to true to check the item, false to uncheck it
See Also: See CCmdUI::SetCheck in MSDN help file
|
protected |
Description: Used internally to set the check state for a menu item without changing the check state bitmap
Parameters: bCheck [in] Set to true to check the item, false to uncheck it
void CRuiUpdateUi::SetRadio | ( | bool | bOn = false | ) |
Description: Call this member function to set the user-interface item for this command to the appropriate check state.
This member function operates like SetCheck, except that it operates on user-interface items acting as part of a radio group. Unchecking the other items in the group is not automatic unless the items themselves maintain the radio-group behavior.
Parameters: bOn [in] Set to true to check the item, false to uncheck it
See Also: See CCmdUI::SetRadio in MSDN help file
void CRuiUpdateUi::SetText | ( | const wchar_t * | sText | ) |
Description: Call this member function to set the text of the menu item.
Parameters: sText [in] If not NULL or empty string the menu item text will be set to this value
See Also: See CCmdUI::SetText in MSDN help file
const wchar_t* CRuiUpdateUi::Text | ( | ) | const |
Description: Call this member function to get the text of the menu item.
Returns: Menu item text
class CRhDockBarExtension* CRuiUpdateUi::m__update_ui_extension |
For internal use only! Reserved for future use.
|
protected |
Handle to the menu containing this menu item.
|
protected |
File ID.
|
protected |
Menu item ID.
|
protected |
Menu ID.
|
protected |
Menu item ID.
|
protected |
Zero based menu item index.
|
protected |
Number of items in this menu, used to validate index.
|
protected |