article says.
Take a look at GetMaskBitmaps method.
AliR.
Thank you, AliR. I have previously looked at the link you included here.
What I was asking was how to use a DIBSection pointer in CreateCursor.
For example, do I need to do some kind of conversion in order to use a
DIBSection pointer for the argument CONST VOID *pvANDPlane?
I have an array of DIBSection pointers and am testing the use of the first
bitmap as follows:
m_pCurrentSprite->m_dibsMask[0], // pointer to AND bitmask array
The resulting bitmap is unintelligible.
-------------
"AliR (VC++ MVP)" <AliR@online.nospam> wrote in message
news:1xElk.15639$cW3.3741@nlpi064.nbdc.sbc.com...
Here you go:
http://www.codeproject.com/KB/graphics/ColorCursorFromBmp.aspx
AliR.
"SteveR" <maxsrussellatremovethisembarqmail.com> wrote in message
news:uZjZeYb9IHA.1448@TK2MSFTNGP02.phx.gbl...
Would someone please tell me if it is possible (and how) to use a
DIBSection pointer in CreateCursor()? I am experimenting with turning
my cursor into a corresponding iconic image when clicking on an image.
m_hSpriteCursor = CreateCursor(
AfxGetApp()->m_hInstance, // handle to application instance
16, // horizontal position of hot spot
0, // vertical position of hot spot
32, // cursor width
32, // cursor height
m_pCurrentSprite->m_dibsMask[0], // pointer to AND bitmask array
m_pCurrentSprite->m_dibsImage[0] // pointer to XOR bitmask array
);