Siddiqui
Siddiqui

Reputation: 7840

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

How to hide the mouse pointer on the window screen of GDI, kindly give me some hints.

Upvotes: 1

Views: 2168

Answers (3)

Foxfire
Foxfire

Reputation: 5765

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).

Upvotes: 2

Andreas Brinck
Andreas Brinck

Reputation: 52549

ShowCursor(FALSE)

Upvotes: 0

Related Questions