vc宏

 
Sub DD()
'DESCRIPTION: A description was not provided.
'Begin Recording
 ActiveDocument.Selection = "/*"
 ActiveDocument.Selection.NewLine
 ActiveDocument.Selection = " * "
 ActiveDocument.Selection.NewLine
 ActiveDocument.Selection = "*/"
 ActiveDocument.Selection.LineUp
 
'End Recording
End Sub

Sub TT()
'DESCRIPTION: A description was not provided.
'Begin Recording
 ActiveDocument.Selection = "TRACE(" & """%s" & "(%d) ERR: %s/n"""+", __FILE__, __LINE__,"+"""ErrorData"""+");"
'End Recording
End Sub

Sub COMMENT()
'DESCRIPTION: A description was not provided.
'Begin Recording
 ActiveDocument.Selection = "/**"
 ActiveDocument.Selection.NewLine
 ActiveDocument.Selection = " * <div> 函數描述 </div>"
 ActiveDocument.Selection.NewLine
 ActiveDocument.Selection = "* @param: ParamName[in] None。"
 ActiveDocument.Selection.NewLine
 ActiveDocument.Selection = "* @param: ParamName[in] None。"
 ActiveDocument.Selection.NewLine
 ActiveDocument.Selection = "* @return:  None。"
 ActiveDocument.Selection.NewLine
 ActiveDocument.Selection = "* @author <a href=mailto:[email protected]>H.K</a>" 
 ActiveDocument.Selection.NewLine
 ActiveDocument.Selection = "*/"

'End Recording
End Sub

Sub SS()
'DESCRIPTION: SS
 'ActiveDocument.Selection =  "/* " + ActiveDocument.Selection + " */"
 ActiveDocument.Selection =  "/*  */"
 ActiveDocument.Selection.CharLeft dsMove, 3
End Sub

發佈了9 篇原創文章 · 獲贊 0 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章