OEAPI::IOEMenuItem Interface Reference

List of all members.

Public Member Functions

HRESULT Create ([in] LONG menuId,[in] BSTR name)
HRESULT CreateAt ([in] LONG menuId,[in] BSTR name,[in] LONG position)
HRESULT CreateBefore ([in] LONG menuId,[in] BSTR name,[in] BSTR before,[in] BOOL subString)
HRESULT CreateSeparator ([out, retval] IOEMenuItem **newItem)
HRESULT CreateSubItem ([in] BSTR name,[out, retval] IOEMenuItem **newItem)
HRESULT Destroy ()
HRESULT GetID ([out, retval] LONG *Id)
HRESULT GetText ([out, retval] BSTR *name)
HRESULT IsChecked ([out, retval] BOOL *state)
HRESULT IsEnabled ([out, retval] BOOL *enabled)
HRESULT IsVisible ([out, retval] BOOL *visible)
HRESULT SetCheck ([in] BOOL check)
HRESULT SetChecked ([in] BOOL checked)
HRESULT SetEnabled ([in] BOOL enabled)
HRESULT SetText ([in] BSTR name)
HRESULT SetVisible ([in] BOOL visible)

Member Function Documentation

HRESULT OEAPI::IOEMenuItem::Create ( [in] LONG  menuId,
[in] BSTR  name 
)

Create a menu item.

HRESULT OEAPI::IOEMenuItem::CreateAt ( [in] LONG  menuId,
[in] BSTR  name,
[in] LONG  position 
)

Create a menu item at the specified position.

HRESULT OEAPI::IOEMenuItem::CreateBefore ( [in] LONG  menuId,
[in] BSTR  name,
[in] BSTR  before,
[in] BOOL  subString 
)

Create a menu item before an existing menu item that has the specified string as text.

HRESULT OEAPI::IOEMenuItem::CreateSeparator ( [out, retval] IOEMenuItem **  newItem  ) 

Create a separator as child of this menu item.

HRESULT OEAPI::IOEMenuItem::CreateSubItem ( [in] BSTR  name,
[out, retval] IOEMenuItem **  newItem 
)

Create a sub item of this menu item.

HRESULT OEAPI::IOEMenuItem::Destroy (  ) 

Destroy menu item.

HRESULT OEAPI::IOEMenuItem::GetID ( [out, retval] LONG *  Id  ) 

Get the menu item id.

HRESULT OEAPI::IOEMenuItem::GetText ( [out, retval] BSTR *  name  ) 

Get menu item's text.

HRESULT OEAPI::IOEMenuItem::IsChecked ( [out, retval] BOOL *  state  ) 

For check style menu items, returns TRUE when it is checked.

HRESULT OEAPI::IOEMenuItem::IsEnabled ( [out, retval] BOOL *  enabled  ) 

Returns TRUE if the menu item is enabled.

HRESULT OEAPI::IOEMenuItem::IsVisible ( [out, retval] BOOL *  visible  ) 

Returns TRUE if the menu item is visible.

HRESULT OEAPI::IOEMenuItem::SetCheck ( [in] BOOL  check  ) 

Set the menu item as with check style.

HRESULT OEAPI::IOEMenuItem::SetChecked ( [in] BOOL  checked  ) 

Set the checked property for check style menu items.

HRESULT OEAPI::IOEMenuItem::SetEnabled ( [in] BOOL  enabled  ) 

Set the menu item as enabled or not.

HRESULT OEAPI::IOEMenuItem::SetText ( [in] BSTR  name  ) 

Set menu item's text.

HRESULT OEAPI::IOEMenuItem::SetVisible ( [in] BOOL  visible  ) 

Set the menu item as visible or not.



Developed by Nektra