VC++ Cursor mask problem on windows vista

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.



Relevant Pages

  • VC++ Cursor mask problem on windows vista
    ... 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 ... The image is composed of a green mask, transparent on XP. ... same application in windows vista creates a black rectangle ...
    (microsoft.public.vc.language)
  • Re: I.E goes Transparent after Automatic Microsoft Download
    ... Not only does IE go transparent but, ... Add/Remove Programs and uninstall 'Windows XP Hotfix - KB835732'. ... After you install this item, you may have to restart your ... >> from MIcrosoft that stated an update was available. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: I.E goes Transparent after Automatic Microsoft Download
    ... Not only does IE go transparent but, ... Add/Remove Programs and uninstall 'Windows XP Hotfix - KB835732'. ... After you install this item, you may have to restart your ... >> from MIcrosoft that stated an update was available. ...
    (microsoft.public.windowsupdate)
  • Re: [PATCH 1/3] PCI: Rework default handling of suspend and resume
    ... So, to fix the issue at hand, I'd like the $subject patch to go first. ... I wonder what we should do about the whole "transparent ... bridge resource allocation" thing. ... whether we would be better off with IO windows for transparent buses (the ...
    (Linux-Kernel)
  • Re: Transparent Form
    ... one thing I have heard is that if you use True Color in Windows, ... > a BMP and making it the form background then making the transparent key ... so really, that didnt work. ...
    (microsoft.public.dotnet.languages.vb)