设置光标大小???(15分)

  • 主题发起人 主题发起人 littlecaibird
  • 开始时间 开始时间
L

littlecaibird

Unregistered / Unconfirmed
GUEST, unregistred user!
光标在edit里的太小了,怎么让它变宽些??
 
估计不行,除非自己模拟光标来设置,请看以下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>&nbsp; &nbsp; int X, // horizontal position <br>&nbsp; &nbsp; int Y // vertical position <br>&nbsp; &nbsp;); <br>&nbsp;<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>&nbsp;<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
 
CreateCaret<br>ShowCaret
 
CreateCaret(handle,nil,20,20);<br>出错啦!!<br>怎么回事??<br>我没有图啊??<br>
 
应该怎么用才行啊?
 
到底怎么改??它的第二个参数要怎么写??<br>我是要让原来的光标变宽,而不是加上一个图
 
大侠们帮帮我吧,改不了啊??
 
各位大哥,是光标,不是书标!!!!<br>是在文字旁边会闪烁的光标, 怎么把它加宽???
 
没人知道??<br>各位大侠(路见不平,拔键相助)!!!!
 

Similar threads

后退
顶部