Hi all,
My problem is one application set a cursor. One one adapter, it's alpha
cursor. On anonther one, it's color cursor. And it seems their data both are
wrong.
I think maybe display driver's some behavior cause GDI converting wrong data.

Some hints and Questions.

MSDN said "The LoadCursor function automatically selects the most
appropriate data for the current display device. "
Does it means when we load a bitmap as a cursor , GDI will convert bitmap
data to be multiple data (include color cursor and alpha cursor) and store
them as resource?
Where does "the most appropriate data" comes from?
What does the "current display device" means?

Thanks,
SLASH

Re: how does GDI handle cursor? by Maxim

Maxim
Sun Sep 04 17:33:42 CDT 2005

> Does it means when we load a bitmap as a cursor , GDI will convert bitmap
> data to be multiple data (include color cursor and alpha cursor) and store
> them as resource?

Correct. It will create internal bitmaps.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com



Re: how does GDI handle cursor? by SLASH

SLASH
Sun Sep 04 20:36:02 CDT 2005

When Application load a cursor, Will it know which type its curor will be?

"Maxim S. Shatskih" wrote:

> > Does it means when we load a bitmap as a cursor , GDI will convert bitmap
> > data to be multiple data (include color cursor and alpha cursor) and store
> > them as resource?
>
> Correct. It will create internal bitmaps.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
>
>

RE: how does GDI handle cursor? by mirrdrv

mirrdrv
Mon Sep 05 12:58:01 CDT 2005

Maybe if the cursor is displayed improperly
on 2 different adapters the problem is just with
that certian cursor.

--
Best regards,
Lev Kazarkin
http://www.demoforge.com



"SLASH" wrote:

> Hi all,
> My problem is one application set a cursor. One one adapter, it's alpha
> cursor. On anonther one, it's color cursor. And it seems their data both are
> wrong.
> I think maybe display driver's some behavior cause GDI converting wrong data.
>
> Some hints and Questions.
>
> MSDN said "The LoadCursor function automatically selects the most
> appropriate data for the current display device. "
> Does it means when we load a bitmap as a cursor , GDI will convert bitmap
> data to be multiple data (include color cursor and alpha cursor) and store
> them as resource?
> Where does "the most appropriate data" comes from?
> What does the "current display device" means?
>
> Thanks,
> SLASH
>