Re: Replacing the system mouse cursor
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 24 Aug 2006 21:40:11 -0400
By the way, PlgBlt is a fast way to rotate a bitmap. If you have a bitmap and an angle
of rotation R through which you want to rotate it,
pt[0].x = width * sin R;
pt[0].y = 0;
pt[1].x = 1 + width * sin R;
pt[1].y = height * sin R;
pt[2].x = 0;
pt[2].y = height * cos R;
then apply PlgBlt
(Win32 Programming, Rector & Newcomer, page 355)
joe
On 24 Aug 2006 01:59:37 -0700, "Andy C" <andrew.cunningham@xxxxxxxxx> wrote:
Thanks for all your helpful replies.Joseph M. Newcomer [MVP]
David Ching wrote:
You could write a program that interfaces with your input device and useThis is the path I'll be taking for the time being, as at the moment
mouse_event() to inject mouse movements and clicks into Windows.
I'm
considering it a proof of concept more than anything.
Joseph M. Newcomer wrote:
A more serious question is what do you want the cursor to show? It sounds like you notYep, exactly.
only want to "change" it, but you want to add a new dimension of display, such as
orientation.
So the course I'll take is to write a simple program to inject mouse
state
into Windows. The same program will create a rotated bitmap of a
pointer
and call WM_SETCURSOR.
Thanks again for all your help - I haven't used newsgroups in ages and
am really impressed by the quick and thorough responses.
Andrew
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Replacing the system mouse cursor
- From: andrew . cunningham
- Re: Replacing the system mouse cursor
- From: Joseph M . Newcomer
- Re: Replacing the system mouse cursor
- From: Andy C
- Replacing the system mouse cursor
- Prev by Date: Re: resize SDI Application Flickers
- Next by Date: Re: activex alternative
- Previous by thread: Re: Replacing the system mouse cursor
- Next by thread: Aplication crash on Ctrl+C in console application
- Index(es):
Relevant Pages
|