VC++ Cursor mask problem on windows vista
- From: Ronen Yacov <rdiment@xxxxxxxxx>
- Date: Wed, 10 Oct 2007 06:28:09 -0700
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
message)
{
// TODO: Add your message handler code here and/or call default
m_hCurPenBlue = LoadCursor(AfxGetResourceHandle(),
MAKEINTRESOURCE(IDC_CURSOR1));
::SetCursor(m_hCurPenBlue);
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
vista)
Thanks,
Ron
.
- Follow-Ups:
- Re: VC++ Cursor mask problem on windows vista
- From: Joseph M . Newcomer
- Re: VC++ Cursor mask problem on windows vista
- Prev by Date: Re: This calculation is just wrong / computer can't count!
- Next by Date: Re: SetWindowPos in Onsize
- Previous by thread: Add timer to a dll
- Next by thread: Re: VC++ Cursor mask problem on windows vista
- Index(es):
Relevant Pages
|