Source Insight 中关闭打开文件中比较旧的文件
来源:互联网 发布:js显示数组内容 编辑:程序博客网 时间:2024/05/29 19:40
题目比较拗口,其实就是解决一个问题: Source Insight中打开的文件数目是有限制的,当打开太多文件后就不能再打开文件了,这时要关闭一些文件才能继续打开文件,我们肯定希望关掉打开很久没有用过的文件,而不是最近使用的。
//保留最后查看的10个文件,其余窗口关闭
macro RemainLast10()
{
index=0
hwnd= GetCurrentWnd()
while(hNil != hwnd)
{
hbuf= GetWndBuf(hwnd)
hwnd=GetNextWnd (hwnd)
if(hNil != hbuf&& index>= 10&& (!IsBufDirty (hbuf)))
{
CloseBuf(hbuf)
}
index= index+1
}
}
这样就可以只保留最近打开的10个文件,其余文件都关闭了(修改了没保存的不会)。
- Source Insight 中关闭打开文件中比较旧的文件
- Source Insight 中关闭打开文件中比较旧的文件
- Source Insight 中使用VSS文件比较
- source insight打开当前文件的目录
- source insight:打开文件所在的目录
- source insight中添加.S文件
- source insight软件中添加.S文件
- Source Insight中设置库头文件
- source insight中添加.S文件
- source insight中添加.S文件
- source insight中添加.S文件
- source insight中添加.S文件
- source insight中添加.S文件【转】
- source insight中添加.cc文件的支持
- 在source Insight中添加s文件的方法
- 比较精简的C#中打开新窗体关闭旧窗体
- source insight 打开文件时报警?
- source insight 打开当前文件目录
- DEV xtrareports
- CentOS下Apache+Python+Django+Wsgi环境搭建
- 焦距
- SQL 语句----去掉数据表里的 前20% 和 后20% 的数据
- 【Android】ListView与Button的共存问题解决
- Source Insight 中关闭打开文件中比较旧的文件
- Windows Server 2008 怎么添加照片查看器等组件
- 作业
- RedHat学习 linux用户管理命令(添加,删除,修改)
- POJ 3233 Matrix Power Series 求S = A + A2 + A3 + … + Ak.
- Java中Date转换大全,返回yyyy-MM-dd的Date类型
- 重装系统后恢复oracle数据库
- Iphone在ScrollView下点击TextField使文本筐不被键盘遮住
- linux内核完全剖析0.12笔记--第四章 80x86保护模式及其编程