How to add tooltips to ATL ActiveX controls (201540)
The information in this article applies to:
- The Microsoft Active Template Library (ATL) 2.1, when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- The Microsoft Active Template Library (ATL) 3.0, when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q201540 SUMMARY
By default, ATL ActiveX controls do not support tooltips. Some containers like Microsoft Visual Basic add the tooltips as an extended control property (ToolTipText) for the ActiveX control. However, not all containers have this feature. If you want to support tooltips in several containers, you need to add tooltip support to your ATL ActiveX control yourself. This article shows how to add tooltip support to an ATL ActiveX Control.
Here are three ways to add tooltip support to an ATL ActiveX control. - Use tooltip windows common control.
- Use MFC's CToolTipCtrl class.
- Use CToolTipCtrl ATL class from ATLCON sample.
REFERENCES
Visual C++ online documentation:
Using the ATL COM AppWizard
Step 2: Adding a Control
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
134209
How to use the ToolTip common control
173974 How to add MFC support to an ATL project
223439 How to using class wrappers to access Windows common controls in ATL
141871 How to add tooltips to ActiveX controls
Modification Type: | Major | Last Reviewed: | 4/29/2005 |
---|
Keywords: | kbCtrlCreate kbhowto kbToolTip KB201540 kbAudDeveloper |
---|
|