如何设置光标??????

Blue_123 2004-10-09 07:02:54
我用SDI编了一程序,显示十六进制,怎样出现光标,谢谢大虾们了!!!!!!!!!!!!
...全文
572 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
iceeleca 2004-10-13
  • 打赏
  • 举报
回复
关注
kpld8888 2004-10-13
  • 打赏
  • 举报
回复
CreateCaret (hwnd, NULL, cxChar, cyChar) ;
SetCaretPos (xCaret * cxChar, yCaret * cyChar) ;
ShowCaret (hwnd) ;
HideCaret(hwnd);
DestroyCaret () ;


Blue_123 2004-10-12
  • 打赏
  • 举报
回复
我想出现一个闪烁的小方块的光标,谢谢!
nineclock 2004-10-10
  • 打赏
  • 举报
回复
对啊EditView实现不了吗?
zhaogaojian 2004-10-10
  • 打赏
  • 举报
回复
基于EditView不行吗?
camelyi 2004-10-09
  • 打赏
  • 举报
回复
没明白你说的光标是啥东西,是cursor还是caret呢?
cursor就是显示鼠标移动的那个东西。
caret就是编辑框中闪闪的那个竖杠。

CWnd::ShowCaret
void ShowCaret( );

Remarks

Shows the caret on the screen at the caret’s current position. Once shown, the caret begins flashing automatically.

The ShowCaret member function shows the caret only if it has a current shape and has not been hidden two or more times consecutively. If the caret is not owned by this window, the caret is not shown.

Hiding the caret is cumulative. If the HideCaret member function has been called five times consecutively, ShowCaret must be called five times to show the caret.

The caret is a shared resource. The window should show the caret only when it has the input focus or is active.

Example

See the example for CWnd::CreateCaret.

CWnd Overview | Class Members | Hierarchy Chart

See Also CWnd::HideCaret,::ShowCaret

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧