10566.html
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>您要的是EM_POSFROMCHAR</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>您要的是EM_POSFROMCHAR</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:cww5@mail.ncku.edu.tw">cww</a> on March 03, 1999 at 13:24:22:<p>
In Reply to: <a href="10565.html">有关于RichTextBox的问题:</a> posted by Cool_G on March 03, 1999 at 11:51:05:<p>
使用 SendMessage,以下节录win32.hlp<br>EM_POSFROMCHAR <br>wParam = (WPARAM)wCharIndex; // zero-based index of character <br>lParam = 0; // not used, must be zero <br>An application sends the EM_POSFROMCHAR message to retrieve the coordinates of the specified character in an edit control.<p>Parameters<p>wCharIndex<br>Value of wParam. Specifies the zero-based index of<br>the character.<p>Return Value<br>The return value specifies the coordinates of the <br>upper-left corner of the character. If wCharIndex<br> is greater than the index of the last character<br> in the control, the return value specifies the <br>coordinates of the position just past the last <br>character in the control. The x-coordinate is in<br> the low-order word and the y-coordinate is in <br>the high-order word. The coordinates are relative<br> to the upper-left corner of the edit control's <br>client area.
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 10566-->
</ul><!--end: 10566-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?