(1)在头文件中定义CToolTipCtrl对象m_ToolTip;
CToolTipCtrl m_ToolTip;
CToolTipCtrl的MSDN说明如下
The CToolTipCtrl class encapsulates the functionality of a “tool tip control,” a small pop-up window that displays a single line of text describing the purpose of a tool in an application. A “tool” is either a window, such as a child window or control, or an application-defined rectangular area within a window’s client area. A tool tip is hidden most of the time, appearing only when the user puts the cursor on a tool and leaves it there for approximately one-half second. The tool tip appears near the cursor and disappears when the user clicks a mouse button or moves the cursor off the tool.
CToolTipCtrl provides the functionality to control the initial time and duration of the tool tip, the margin widths surrounding the tool tip text, the width of the tool tip window its