⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ttooltip.h

📁 This ZIP archive includes the sources (and executable) for the FileTest utility, written by Ladisla
💻 H
字号:
/*****************************************************************************/
/* TToolTip.h                             Copyright (c) Ladislav Zezula 2004 */
/*---------------------------------------------------------------------------*/
/* Header file which interfaces the class implementing a tooltip             */
/*---------------------------------------------------------------------------*/
/*   Date    Ver   Who  Comment                                              */
/* --------  ----  ---  -------                                              */
/* 07.06.04  1.00  Lad  The first version of TToolTip.h                      */
/*****************************************************************************/

#ifndef __TTOOLTIP_H__
#define __TTOOLTIP_H__

class TToolTip
{
    public:

    // Constructor uses the handle to the window which will show the tooltips,
    // e.g. dialog box window. For a dialog, a good place to construct the
    // TToolTip object is the OnInitDialog method.
    TToolTip(HWND hParent);
    ~TToolTip();

    // Adding tooltips for child windows and/or rectangles
    LRESULT AddTipForChild(HWND hWnd, UINT_PTR nIDString);
    LRESULT AddTipForChild(HWND hDlg, UINT nIDCtrl, UINT nIDString);
    LRESULT AddTipForRect(RECT & rect, UINT_PTR nIDString);

    // Configuring tooltip
//  void RemoveAll();


    protected:

    HWND m_hParent;
    HWND m_hToolTip;
    UINT m_nIdCounter;
};

#endif // __TTOOLTIP_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -