473,395 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Subject: VC++ Cursor mask problem on windows vista

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's image (It is not transparent any more).

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

Thanks,
Ron

Oct 10 '07 #1
2 2130
Ronen Yacov wrote:
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's image (It is not transparent any more).

Do you know how to solve this (So the margin will be transparent on
vista)
I'm afraid you are asking in the wrong group. This is a Windows
specific question (the actual language you are using to call the Windows
API is irrelevant).

Please post in a newsgroup with microsoft or windows in its name instead.

Thank you.
Oct 10 '07 #2
On 2007-10-10 15:23, Ronen Yacov wrote:
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.
MFC is off-topic in this group, look for one with mfc in its name, see
the FAQ section 5 for more details http://www.parashift.com/c++-faq-lite

--
Erik Wikström
Oct 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gary Richardson | last post by:
I would like to define a new cursor for use on a Canvas (other than one of those listed in Appendix F of "Python and Tkinter Programming"). A search on Google turned up one bit of code that seemed...
1
by: AA Arens | last post by:
(1) When I want the data in the datafield starts with the first character forcedly uppercased, I use the input mask >L<, followed by ?????. When entering the data, the field is marked with...
37
by: Greg | last post by:
Except for legacy or non-.NET applications, is there any reason to use VC++ anymore? It seems that for .NET applications, there would be no reason to choose C++ over C# since C# is faster to...
14
by: John | last post by:
My friend told me that his company will migrate the VC++ win32 applications to C++ .NET windows applications. I don't understand why since currently Microsoft only supports .NET on windows...
9
by: salad | last post by:
Due to an earlier posting I read in this newsgroup regarding Office 2007 beta, I downloaded it. After I DL'd it, I got an invitation from MS to get WinVista. I am now wondering if, since both...
6
by: j2ee.singh | last post by:
Hi, I'm looking to buy a new laptop primarily to learn & practice .NET and C#. My Question is: Is there any requirement for .NET and C# in terms of the following Operating Systems: -...
9
by: =?Utf-8?B?S2lk?= | last post by:
Hi I have many questions Does VS Orcas still has VC++ , do you think that VC++ will face out by dotnet or Java ? Can C# support standard or Win32 C/C++ class lib dll and COM ? Can dotnet...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
1
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
We have some dumb and lazy people here, so I need help. To fix the dumb part: We have placed MaskedTextBoxes on the forms so they will stop entering the information incorrectly. Now the lazy...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.