开发者

Hiding Mouse Pointer on window Screen using GDI in c++

开发者 https://www.devze.com 2022-12-28 10:29 出处:网络
How to hide the mouse pointer o开发者_StackOverflow社区n the window screen of GDI, kindly give me some hints.Try ShowCursor(false);

How to hide the mouse pointer o开发者_StackOverflow社区n the window screen of GDI, kindly give me some hints.


Try ShowCursor(false);

Sources:

http://msdn.microsoft.com/en-us/library/ms648396.aspx

http://www.tech-archive.net/Archive/Development/microsoft.public.win32.programmer.gdi/2004-08/0045.html


You can use GetCursorPos to determine the location of the cursor and then if the cursor is above your GDI area you can call ShowCursor(FALSE).

As soon as the cursor leaves your GDI area call ShowCursor(TRUE).


ShowCursor(FALSE)

0

精彩评论

暂无评论...
验证码 换一张
取 消