正个目地是这个的我想先求出 输入光标的 行和列
再然求出最后被输入的单词
和 光标 在 RichTextBox 上的 X,Y 坐标
就这三个目地…谢谢啦
再然求出最后被输入的单词
和 光标 在 RichTextBox 上的 X,Y 坐标
就这三个目地…谢谢啦
解决方案 »
- 在线求解-VB如何获取两个标签之间的数据
- 高手请教一下
- ado连foxpro,conn.close后数据库文件还是没有关闭。
- vsFlexgrid编辑行的问题?
- 关于写数据库的一些问题?急在线等!
- VB静态变量怎么初始化?
- 做帮助文档怎样最简单?
- 用MCI接口编写播放MIDI程序,怎样才能使音乐循环播放
- 我用InstallShield Developer打包一个,用vb开发的程序.如当我用打包后的文件安装后,想再安装时,提示已经有一个副本,不让安装,当我想
- 拉手问题请教各位大侠
- TWAIN?TWAIN?TWAIN?TWAIN?TWAIN?怎样在VB中使用TWAIN标准去选择诸如扫描仪、数码相机等符合TWAIN标准的图像设备来获取图像????[email protected]
- 用Help WorkShop制作的Help中RTF文件中的单引号全部变成方框?为十么?
(HWND) hWnd, // handle to destination window
EM_CHARFROMPOS, // message to send
(WPARAM) wParam, // not used; must be zero
(LPARAM) lParam // point coordinates
);
Parameters
wParam
This parameter is not used.
lParam
Specifies the coordinates of a point in the control's client area. The coordinates are in screen units and are relative to the upper-left corner of the control's client area.
Rich edit controls: This is a pointer to a POINTL structure that contains the horizontal and vertical coordinates. Edit controls: The low-order word contains the horizontal coordinate. The high-order word contains the vertical coordinate. Return Values
Rich edit controls: The return value specifies the zero-based character index of the character nearest the specified point. The return value indicates the last character in the edit control if the specified point is beyond the last character in the control. Edit controls: The low-order word specifies the zero-based index of the character nearest the specified point. This index is relative to the beginning of the control, not the beginning of the line. If the specified point is beyond the last character in the edit control, the return value indicates the last character in the control. The high-order word specifies the zero-based index of the line that contains the character. For single-line edit controls, this value is zero. The index indicates the line delimiter if the specified point is beyond the last visible character in a line. Res
Rich Edit: For information about the compatibility of rich edit versions with the various system versions, see About Rich Edit Controls. Requirements
Windows NT/2000 or later: Requires Windows NT 4.0 or later.
Windows 95/98/Me: Requires Windows 95 or later.
Version: Requires Rich Edit 1.0 or later.
Header: Declared in Winuser.h; include Windows.h.See Also
Edit Controls Overview, Edit Control Messages, EM_POSFROMCHAR, MAKELPARAM, POINTL Microsoft Platform SDK, February 2001 Edition.
This content last built on Thursday, February 01, 2001.
Requirements
Windows NT/2000 or later: Requires Windows NT 4.0 or later.
Windows 95/98/Me: Requires Windows 95 or later.
Version: Requires Rich Edit 1.0 or later.
Header: Declared in Winuser.h; include Windows.h.
See Also
Edit Controls Overview, Edit Control Messages, EM_POSFROMCHAR, MAKELPARAM, POINTL
我是要求出 输入光标("I") 在 RichTextBox 上的 X,Y 坐标!!!
Dim pt As POINTAIP
GetCaretPos pt
Label1.Caption = pt.x & "," & pt.y
End SubGetCaretPos 获得当前活动插入点的坐标。