Delphi Open Tools Api实例研究(一)[17]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 hkbarton 的 blog

  //iotamodulemodulefileeditors[]属性得到一个iotaeditor

  if intfeditor.queryinterface(iotasourceeditor,editor)=s_ok then

  //查看遍历到的文件是否是代码文件并已开始在代码编辑器中编辑。

  //如果是便通过一个out参数editor得到一个实现iotasourceeditor的实例

   break;

 end;

 if editor=nil then

 begin

  messagebox(idehandle,'当前没有代码编辑窗口','hktest',mb_iconinformation);

  exit;

本文关键:OTA,Delphi,接口
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top