Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 2.29 KB

File metadata and controls

33 lines (21 loc) · 2.29 KB
description Learn more about: Manipulating the Tool Tip Control
title Manipulating the Tool Tip Control
ms.date 11/04/2016
helpviewer_keywords
CToolTipCtrl class [MFC], manipulating tool tip attributes
tool tips [MFC], attributes
ms.assetid 3600afe5-712a-4b56-8456-96e85fe879af

Manipulating the Tool Tip Control

Class CToolTipCtrl provides a group of member functions that control the various attributes of the CToolTipCtrl object and the tool tip window.

The initial, pop-up, and reshow durations for the tool tip windows can be set and retrieved with calls to GetDelayTime and SetDelayTime.

Change the appearance of the tool tip windows with the following functions:

In order for the tool tip control to be notified of important messages, such as WM_LBUTTONXXX messages, you must relay the messages to your tool tip control. The best method for this relay is to make a call to CToolTipCtrl::RelayEvent, in the PreTranslateMessage function of the owner window. The following example illustrates one possible method (assuming the tool tip control is called m_ToolTip):

[!code-cppNVC_MFCControlLadenDialog#41]

To immediately remove a tool tip window, call the Pop member function.

See also

Using CToolTipCtrl
Controls