Partager via


GetMaxID

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at GetMaxID.

Gets the highest dispid from members of this interface and all of its bases.

Syntax

  
      function GetMaxID(   
   ointerface    
);  

Parameters

ointerface
A VCCodeInterface object.

Return Value

The highest dispid from the members of oInterface and all its bases.

Remarks

Call this function to get the highest dispid from the members of the specified interface and all its bases.

Example

if (strInterfaceType == "custom")  
      window.external.AddSymbol("DISPID_DISABLED", true);  
   else  
   {  
      var nDispID = window.external.FindSymbol("DISPID");  
      if (!nDispID.length)  
      {  
         nDispID = GetMaxID(oInterface) + 1;  
         window.external.AddSymbol("DISPID", nDispID);  
      }  
   }  

See Also

Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard