Hi Guys!

I've built a test application in VC++ 6.0 which runs on windows XP.
It is a just a simple mfc dialog app, which changes the cursor image
using cur file.

The code is:

BOOL CProjectDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT
// TODO: Add your message handler code here and/or call default

m_hCurPenBlue = LoadCursor(AfxGetResourceHandle(),
return TRUE;

The image is composed of a green mask, transparent on XP.

While in XP the cursor has transparency over the dialog, running the
same application in windows vista creates a black rectangle
surrounding the cursor'ss image (It is not transparent any more).

Do you know how to solve this (So the margin will be transparent on