尝试过使用SetCaretPos函数,可以设置光标的位置,但没有改变输入字符的插入号(insertion point)。问如何改变光标的位置同时改变插入点?
解决方案 »
- 多任务操作系统,对每个任务的寄存器地址怎么保护
- 大家好,问一个COM组件调问题?
- 从mysql数据库中读中文到VC6.0的listbox控件中,出现问号"??"
- 局域网中,在一台机发文件给100台机,看看我的方法,大家给点补充.
- 请大家帮忙--关于隐藏对话框的问题(在线等)
- 一个关于类型转换的问题
- 老问题了:debug编译运行正常,release编译后运行不正常,大概有哪些原因呢?
- 如何将一个工程A加入到另一个工程B中去,运行B时,通过点击B的按钮或菜单来运行A
- 菜鸟求解DLL的导出问题
- 请教用MSCOMM做串口通信接收宽字符的问题
- 求助:C/S程序问题
- 请问如何用程序设置和得到ie主页(不用注册表的方法)?
(
int X,
int Y
);
This function moves the caret to the specified coordinates. BOOL SetCaretPos(
int X,
int Y);
Parameters
X
[in] Integer that contains the new x-coordinate of the caret.
Y
[in] Integer that contains the new y-coordinate of the caret.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError. Res
SetCaretPos moves the caret whether or not the caret is hidden. The system provides one caret per queue. A window should create a caret only when it has the keyboard focus or is active. The window should destroy the caret before losing the keyboard focus or becoming inactive. A window can set the caret position only if it owns the caret.