Hide Table of Contents
CreatePluginMenu Method (IEdmVault5)

Obsolete. Superseded by IEdmVault12::CreatePluginMenu2.

Syntax

Visual Basic (Declaration) 
Function CreatePluginMenu( _
   ByVal hMenu As System.Integer, _
   ByVal lInsertPosition As System.Integer, _
   ByRef plStartID As System.Integer, _
   ByVal lSelFileCount As System.Integer, _
   ByVal lSelFolderCount As System.Integer, _
   ByVal lCreateMenuFlags As System.Integer, _
   ByRef plItemCount As System.Integer _
) As IEdmMenu5
C# 
IEdmMenu5 CreatePluginMenu( 
   System.int hMenu,
   System.int lInsertPosition,
   out System.int plStartID,
   System.int lSelFileCount,
   System.int lSelFolderCount,
   System.int lCreateMenuFlags,
   out System.int plItemCount
)
C++/CLI 
IEdmMenu5^ CreatePluginMenu( 
&   System.int hMenu,
&   System.int lInsertPosition,
&   [Out] System.int plStartID,
&   System.int lSelFileCount,
&   System.int lSelFolderCount,
&   System.int lCreateMenuFlags,
&   [Out] System.int plItemCount
) 

Parameters

hMenu
Handle of menu in which to insert add-in commands
lInsertPosition
Zero-based index of the position in the menu where new menu items should be inserted; -1 to append new menu items to the bottom of the menu
plStartID
Next available menu command ID (see Remarks)
lSelFileCount
Number of selected files
lSelFolderCount
Number of selected folders
lCreateMenuFlags
Combination of CreateMenuFlags bits
plItemCount
Number of menu items added

Return Value

IEdmMenu5 (see Remarks)

Example

 

Remarks

When this method is called, plStartID should be the first free menu command ID that a new command is assigned. When this method returns, plStartID is the first free menu command ID after IDs for new menu commands have been reserved.

When the user chooses one of the menu items added by this method, your program must call IEdmMenu5::OnMenuItem.

Return codes: 

  • S_OK: The method successfully executed.
 

See Also

Availability

SOLIDWORKS PDM Professional Version 5.2


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   CreatePluginMenu Method (IEdmVault5)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2018 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.