AddMenu Method (IApplication)
Obsolete. Superseded by IWorkspace::AddMenu.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddMenu( _
const dsString& ApiUuid As System.String, _
UIState As dsUIState_e, _
long Position As System.Integer, _
const dsString& As System.String _
) As MenuItem |
Parameters
- ApiUuid
- UUID of the add-in or application
- UIState
- Where to add the menu item as defined in dsUIState_e
- Position
- Position of the menu item
- MenuName
- Name of the menu item
- UiState[out] or Return Value
- Menu item
Example
The following code snippets show how to add a menu item to DraftSight's Classic Default workspace menu:
COM native C++
IMenuItemPtr pMenu = m_DsApp->AddMenu( m_sApiUuid, dsUIState_Document, MENU_POSITION, L"DsAddin" );
C++
dsMenuItem_ptr pMenu;
dsApp->AddMenu(myApplication::appID, dsUIState_Document, MENU_POSITION, UserCommandName, &pMenu);
Remarks
See Also
Availability
DraftSight V1R1