Adds an icon to a context-sensitive menu of a C++ SOLIDWORKS add-in.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IFrame
Dim DocType As System.Integer
Dim SelectType As System.Integer
Dim HintString As System.String
Dim CallbackFcnAndModule As System.String
Dim CustomNames As System.String
Dim BitmapFilePath As System.String
Dim value As System.Boolean
value = instance.AddMenuPopupIcon(DocType, SelectType, HintString, CallbackFcnAndModule, CustomNames, BitmapFilePath) |
Parameters
- DocType
- Document type to which to add the context-sensitive menu icon
- SelectType
- Selection type to which to add the context-sensitive menu icon
- HintString
- Text displayed in the SOLIDWORKS status bar when the user moves the mouse over the icon
- CallbackFcnAndModule
- Function called when user clicks the context-sensitive menu icon (see Remarks)
- CustomNames
- Names of custom feature types (see Remarks)
- BitmapFilePath
- Path and file name of the bitmap for the context-sensitive menu icon
Return Value
True if the context-sensitive menu icon is added, false if not
Example
C++ |  |
---|
//Add a single icon to the standard
//SOLIDWORKS face context menu.
swFrame->AddMenuPopupIcon(
swDocPART,
swSelFACES,
CComBSTR(_T("UserPopupMenus.dll@MinibarItem1_Menu1_Callback,Facehintstring")),
CComBSTR(_T("UserPopupMenus.dll@MinibarItem1_Menu1_Callback")),
CComBSTR(_T("")),
UserItem1_Menu1_bitmapFile,
&iconSuccess
); |
Remarks
See Also
Availability
SOLIDWORKS 2010 FCS, Revision Number 18.0