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.

  
      function GetMaxID(   
   ointerface    
);  

Parameters

ointerface
A VCCodeInterface object.

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

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

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);  
      }  
   }  

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

Show: