怎样获得当前鼠标的形状?

ToolBuilder 2006-07-21 01:24:58
我想要获得当前鼠标的形状,以便来判断是处于什么状态,有最直接的方法吗?



...全文
400 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
kencharles 2006-07-22
  • 打赏
  • 举报
回复
HCURSOR GetCursor( );

Return Value

A handle to a cursor image. NULL if no cursor is previously specified.

aijunshen 2006-07-21
  • 打赏
  • 举报
回复
不明白你说的意思
是自己已经设置了鼠标形状及对应的ID,然后获取鼠标的状态
还是?
cnxiaohai 2006-07-21
  • 打赏
  • 举报
回复
GetCursorInfo Function

--------------------------------------------------------------------------------

The GetCursorInfo function retrieves information about the global cursor.

Syntax

BOOL GetCursorInfo( PCURSORINFO pci
);
Parameters

pci
[out] Pointer to a CURSORINFO structure that receives the information. Note that you must set CURSORINFO.cbSize to sizeof(CURSORINFO) before calling this function.
Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

梧桐168 2006-07-21
  • 打赏
  • 举报
回复
GetCursor()

19,468

社区成员

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

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