估计不行,除非自己模拟光标来设置,请看以下API:<br>The SetCaretPos function moves the caret to the specified coordinates. If the window that owns the caret was created with the CS_OWNDC class style, then the specified coordinates are subject to the mapping mode of the device context associated with that window. <br><br>BOOL SetCaretPos(<br><br> int X, // horizontal position <br> int Y // vertical position <br> <br> <br><br>Parameters<br><br>X<br><br>Specifies the new x-coordinate of the caret. <br><br>Y<br><br>Specifies the new y-coordinate of the caret. <br><br> <br><br>Return Values<br><br>If the function succeeds, the return value is nonzero.<br>If the function fails, the return value is zero. To get extended error information, call GetLastError. <br><br>Remarks<br><br>SetCaretPos moves the caret whether or not the caret is hidden. <br>The caret is a shared resource; there is only one caret in the system. A window can set the caret position only if it owns the caret. <br><br>See Also<br><br>GetCaretPos, HideCaret, ShowCaret