InsertIntoFunction

 

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 InsertIntoFunction.

Used by AddATLSupportToProject to insert code into InitInstance.

Syntax

  
      function InsertIntoFunction(   
   oFunction,   
   strSearchString,   
   nStartLine,   
   nEndLine,   
   bInsideIfBlock    
);  

Parameters

oFunction
The function object into which the insertion is made.

strSearchString
The string to find to determine insertion point.

nStartLine
The starting line to pass to GetCodeForInitInstance.

nEndLine
Ending line to pass to GetCodeForInitInstance.

bInsideIfBlock
Indicates whether the insertion is into a function block.

Return Value

true if successful; otherwise false.

See Also

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