Solved

getcursor + drawicon not working properly

Posted on 2006-06-16
6
265 Views
Last Modified: 2012-06-27
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
Comment
Question by:Mark_FreeSoftware
  • 3
  • 2
6 Comments
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 500 total points
Comment Utility
0
 
LVL 20

Expert Comment

by:alainbryden
Comment Utility
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
 
LVL 13

Author Comment

by:Mark_FreeSoftware
Comment Utility

@ egl1044

thanks, that works great!

0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 20

Expert Comment

by:alainbryden
Comment Utility
hehe I really really hate handles.
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
Comment Utility
>> hehe I really really hate handles.

lol why?
0
 
LVL 20

Expert Comment

by:alainbryden
Comment Utility
Because I don't understand them -_-
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DO Loop not working 4 62
VBA: Add rows to listbox based on criteria 7 63
Validating VB6 Function 19 49
Windows 10 start screen issues 9 47
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now