getcursor + drawicon not working properly

Hello experts,


i am creating an application that is duplicating the mouse pointer
to do that, i have a timer running, that is executing with an interval 30
this code is executing:
tmpCursor = CopyCursor(GetCursor)
DrawIcon frmMain.hdc, 0, 0, tmpCursor


this works fine, as long as the mouse cursor is changed by the ide
whenever an other program changes the cursor (word, firefox, or explorer) the cursor on my form doesnt change

what can i do to update it correctly?


mark
LVL 13
Mark_FreeSoftwareAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
alainbrydenCommented:
GetCursor corresponds to the cursor property of the running application that calls it, and so it won't be affected by the other programs I believe.
0
 
Mark_FreeSoftwareAuthor Commented:

@ egl1044

thanks, that works great!

0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
alainbrydenCommented:
hehe I really really hate handles.
0
 
Mark_FreeSoftwareAuthor Commented:
>> hehe I really really hate handles.

lol why?
0
 
alainbrydenCommented:
Because I don't understand them -_-
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.