由 AddATLSupportToProject 所使用來將程式碼插入至 InitInstance。
function InsertIntoFunction(
oFunction,
strSearchString,
nStartLine,
nEndLine,
bInsideIfBlock
);
參數
oFunction
將進行插入動作的函式物件。strSearchString
搜尋用來判斷插入點的字串。nStartLine
要傳遞給 GetCodeForInitInstance 的起始行。nEndLine
要傳遞給 GetCodeForInitInstance 的結束行。bInsideIfBlock
指示是否要插入至函式區塊內。
傳回值
如果成功則為 True,否則為 False。