• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

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
0
Mark_FreeSoftware
Asked:
Mark_FreeSoftware
  • 3
  • 2
1 Solution
 
nffvrxqgrcfqvvcCommented:
0
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

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.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now