读书人

请问妖哥:怎么把以下宏转成bcb代码

发布时间: 2012-03-20 14:01:11 作者: rapoo

请教妖哥:如何把以下宏转成bcb代码
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True

[解决办法]
OLE专业户来也!!!

C/C++ code
vExcelApp.OlePropertyGet("ActiveSheet").OleProcedure("Protect",    WideString(""),   // Password    true, // DrawingObjects:=True,    true, // Contents:=True    true, // Scenarios:=True    false, // UserInterfaceOnly    true, // AllowFormattingCells:=True    true, // AllowFormattingColumns:=True    true  // AllowFormattingRows:=True    ); 

读书人网 >C++ Builder

热点推荐