[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

getcursor + drawicon not working properly

Posted on 2006-06-16
6
Medium Priority
?
298 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 2000 total points
ID: 16925043
0
 
LVL 21

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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 21

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 21

Expert Comment

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

834 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