Adds a menu item and bitmap or a separator to an existing pull-down menu.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IFrame
Dim Menu As String
Dim Item As String
Dim Position As Integer
Dim CallbackFcnAndModule As String
Dim BitmapFileName As String
Dim value As Boolean
value = instance.AddMenuItem2(Menu, Item, Position, CallbackFcnAndModule, BitmapFileName)
|
Parameters
- Menu
- Name of the menu to which to add item
- Item
- Name of item (including accelerator key "&"); if Item is NULL or empty, then this method adds a separator
- Position
- Position at which to add the new menu item; the first item is at position 0; if Position is 1, the new menu item is added to the end of the list
- CallbackFcnAndModule
- Function called when user clicks the menu item (see Remarks)
- BitmapFileName
- Path and filename of the bitmap for the menu item
Return Value
True if menu item is added, false if not
Remarks
See Also
Availability
SolidWorks 2005 FCS, Revision Number 13.0