Mark_FreeSoftware
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
@ egl1044
thanks, that works great!
hehe I really really hate handles.
ASKER
>> hehe I really really hate handles.
lol why?
lol why?
Because I don't understand them -_-