1

In my application I want to get the current mouse cursor to display it in an applet. for that I have to write a C or C++ function that returns mouse cursor as a buffered image.

(here I choose C or C++ because of the speed of execution. other than that I found c# code snippet that get the cursor as a bit map in this article http://www.codeproject.com/Articles/12850/Capturing-the-Desktop-Screen-with-the-Mouse-Cursor.)

In msdn library there is a function that returns a handle to the current cursor. but handle can do nothing other than passing to a function. is there a function that returns the current cursor as a buffered image or can I get cursor image using handle itself?

1
  • 3
    GetIconInfo looks like it's halfway to what you want. This question seems to be doing about the same thing, too. Commented Jul 13, 2012 at 20:01

1 Answer 1

4

Are you looking for something like: GetCurPos?

(There are a bunch of functions in the sidebar to look into also)

This article might also be of help: C++ Programming: Easy Screen Capture Using MFC/ATL

Sign up to request clarification or add additional context in comments.

1 Comment

Glad to hear it. If you are able to figure it out from that, click the ^ button a bit above the tick :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.