Solved

getcursor + drawicon not working properly

Posted on 2006-06-16
6
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 500 total points
ID: 16925043
0
 
LVL 20

Expert Comment

by:alainbryden
ID: 16925808
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
ID: 16926363

@ egl1044

thanks, that works great!

0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 20

Expert Comment

by:alainbryden
ID: 16926808
hehe I really really hate handles.
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 16926831
>> hehe I really really hate handles.

lol why?
0
 
LVL 20

Expert Comment

by:alainbryden
ID: 16926895
Because I don't understand them -_-
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

729 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