Solved

Visual Studio 2005 - tooltips

Posted on 2006-07-05
3
543 Views
Last Modified: 2008-01-09
Hello guys

I am having trouble displaying my tooltip windows in VS2005 compiled projects (32bit option on a 64bit system).
They used work when compiled with VC6 on 32bit machines.

I am creating a window of TOOLTIP_CLASS in CWnd::OnCreate() of the owning window
and using it with messages TTM_UPDATETIPTEXT, TTM_TRACKPOSITION, TTM_TRACKACTIVATE messages whenever I wish to show them.

Cheers,
Sebastian
0
Comment
Question by:bastibartel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 250 total points
ID: 17043146
Define the following in your header file
#define WINVER 0x0500 or lower
#define _WIN32_WINDOWS 0x0500 or lower
#define _WIN32_WINNT 0x0500 or lower

By default the definitions vary based on target OS.
Mapping is here
http://windowssdk.msdn.microsoft.com/en-us/library/ms736959.aspx

0
 
LVL 5

Author Comment

by:bastibartel
ID: 17043329
Hi

OK, these macros had defaulted to Windows Server 2003 in my builds.

So, I cannot define WINVER for Windows XP or higher ?
I will be trying it out - in the meantime: What are the consequence for my tooltips based on these macros.

Cheers,
Sebastian


0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 17044212
I think there won't be any consequence as the tooltips would work correctly for the specific OS. You can also refer to this article.
http://www.kbalertz.com/320479/Porting.Projects.Visual.Changes.Target.Operating.System.aspx
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question