Hide Table of Contents
CreateFeatureMgrControl2 Method (IModelViewManager)

Creates a new view (tab) in the FeatureManager design tree using the specified bitmap file and ActiveX tab control.

.NET Syntax

Visual Basic (Declaration) 
Function CreateFeatureMgrControl2( _
   ByVal BitMapFile As System.String, _
   ByVal Class As System.String, _
   ByVal LicKey As System.String, _
   ByVal ToolTip As System.String, _
   ByVal WhichPane As System.Integer _
) As FeatMgrView
Visual Basic (Usage) 
Dim instance As IModelViewManager
Dim BitMapFile As System.String
Dim Class As System.String
Dim LicKey As System.String
Dim ToolTip As System.String
Dim WhichPane As System.Integer
Dim value As FeatMgrView
 
value = instance.CreateFeatureMgrControl2(BitMapFile, Class, LicKey, ToolTip, WhichPane)
C# 
FeatMgrView CreateFeatureMgrControl2( 
   System.string BitMapFile,
   System.string Class,
   System.string LicKey,
   System.string ToolTip,
   System.int WhichPane
)
C++/CLI 
FeatMgrView^ CreateFeatureMgrControl2( 
&   System.String^ BitMapFile,
&   System.String^ Class,
&   System.String^ LicKey,
&   System.String^ ToolTip,
&   System.int WhichPane
) 

Parameters

BitMapFile

Fully qualified path to the bitmap file that you want to use for the tab

Class

Class ID for the ActiveX control

LicKey

License key for the ActiveX control

ToolTip

Text for the ToolTip

WhichPane

Pane to use as defined in swFeatMgrPane_e

Return Value

Pointer to the new tab

Example

Remarks

This method lets you add a tab for an ActiveX control to the FeatureManager design tree. A user can click the tab to activate the ActiveX control.

To add a tab to the FeatureManager design tree, specify swFeatMgrPane_e.FeatMgrPaneBottom for WhichPane. To add a tab to a FeatureManager design tree that has been split, specify swFeatMgrPane_e.swFeatMgrPaneTop and swFeatMgrPane_e.swFeatMgrPaneBottom, respectively, for WhichPane. See IModelDoc2::FeatureManagerSplitterPosition for details on splitting and positioning the split panel bar on a split FeatureManager design tree.

To delete a tab created by this method, use IFeatMgrView::DeleteView.

 

This method sets the class ID and license key information for the ActiveX control when the API PropertyManager page is shown and the ActiveX control is created. The Class argument can be either the name of the control (ProgID) or the class ID (CLSID), for example, "MSCAL.calendar" or "{8E27C92B-1264-101C-8A2F-040224009C02}". Both provide the calendar protocol. You can obtain these strings using a combination of the Microsoft OLE/COM Object Viewer and the registry editor.

 

For example:

 

' ProgID

bRet = m_pActiveXControl.SetClass("MSCAL.Calendar", "")

bRet = m_pActiveXControl2.SetClass("MSComctlLib.ListViewCtrl", "")

 

' CLSID

bRet = m_pActiveXControl.SetClass("{8E27C92B-1264-101C-8A2F-040224009C02}", "")

bRet = m_pActiveXControl2.SetClass("{BDD1F04B-858B-11D1-B16A-00C0F0283628}", "")

 

See also Keystrokes and Accelerator Keys in ActiveX Modeless Dialogs and PropertyManager Pages.

 

See Also

Availability

SolidWorks 2004 FCS, Revision Number 12.0


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:   CreateFeatureMgrControl2 Method (IModelViewManager)
*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) 2014 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.