Source Insight 宏实现移动光标到行首或行尾
2014-04-19 13:00
267 查看
/* *@author: citongke1 *@brief 移动光标到行首 */ macro MoveHome() { hwnd = GetCurrentWnd(); hbuf = GetCurrentBuf(); if (hbuf == 0) stop; // empty buffer ln = GetBufLnCur(hbuf); ipos = 0; SetBufIns(hbuf, ln, ipos); } /* *@author: citongke1 *@brief 移动光标到行尾 */ macro MoveEnd() { hwnd = GetCurrentWnd(); hbuf = GetCurrentBuf(); if (hbuf == 0) stop; // empty buffer ln = GetBufLnCur(hbuf); //ipos = GetWndSelIchFirst(hwnd);//获取当前光标位置 text = GetBufLine(hbuf, ln); ipos = strlen(text); SetBufIns(hbuf, ln, ipos); }
相关文章推荐
- Vim快速移动光标至行首和行尾
- Xcode:Home键光标移动到行首和End键光标移动到行尾
- Vim快速移动光标至行首和行尾 、第一行和最后一行
- Vim-复制选中内容至系统剪贴板,光标移动到指定行的行首和行尾
- Vim快速移动光标至行首和行尾
- Edit Control(编辑框控件)将光标移动到行尾,实现即时显示新内容
- linux之Vim用快捷键快速移动光标至行首和行尾
- Edit Control(编辑框控件)将光标移动到行尾,实现即时显示新内容
- Vim快速移动光标至行首和行尾
- VIM快速移动光标到行首行尾及特定行
- Source Insight复制粘贴后光标定位到行首更改操作
- centos 目录结构 快捷键 ls命令,alias别名,so:动态库 a:静态库,环境变量PATH,Ctrl+z 暂停命令,Ctrl+a 光标到行首,Ctrl+e 光标到行尾,Ctrl+u 删除光标前所有字符 Ctrl+r 搜索命 hash命令 Ctrl+左箭头/右箭头 cd命令 第三节课
- C#:光标通过上下键或者enter键从一个textBox移动到另一个textBox或实现按键click功能
- 【C语言】在VC中使用gotoxy函数实现光标的移动
- 用代码实现光标的移动
- C语言实现控制台中光标随意移动
- js实现 移动光标跟焦点事件
- c# 在TextBox里实现右键单击移动光标位置(让右键单击和左键单击有一样的效果)
- mysql数据库“光标”移动机制实现的分页查询
- Vim中x与p【剪切与粘贴】;移动到行首或行尾;