Page principale | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Composants | Déclarations | Pages associées

MyToolTip.h

Aller à la documentation de ce fichier.
00001 // http://www.cppfrance.com/article.aspx?Val=637
00002 // Dans vôtre projet ajouter ToolTip.cpp
00003 // Dans vôtre code principal incluer TooTip.h
00004 // modifier WM_INITDIALOG
00005 // InitCommonControls doit eter lancé avant
00006 
00007 //******************//
00008 // Fichier ToolTip.h//
00009 //******************//
00010 
00011 #ifndef __TOOLTIP_H
00012 #define __TOOLTIP_H
00013 
00014 #include <windows.h>
00015 #include <commctrl.h>
00016 
00017 class CMyToolTip 
00018 {
00019         private:
00020                 HWND m_hWndToolTip;
00021                 HWND m_hWndParent;
00022                 HINSTANCE m_hInstance;
00023                 TOOLINFO m_toolTipStruct;
00024 
00025         public:
00026                 CMyToolTip() { m_hWndToolTip=NULL; }
00027                 BOOL operator =(HWND hWnd);                                                                     //Initialise le controle
00028                 BOOL Add(char *text,UINT control);                      //Ajout un ToolTip au Controle
00029                 BOOL SetTime(int initTime,int reShowTime,int autoPopTime);
00030                 BOOL SetWidth(int maxWidth);
00031 };
00032 
00033 #endif

Généré le Thu Apr 8 18:58:43 2004 pour SFC par doxygen 1.3.6