Back to index

lightning-sunbird  0.9+nobinonly
BrowserToolTip.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: Mozilla-sample-code 1.0
00004  *
00005  * Copyright (c) 2002 Netscape Communications Corporation and
00006  * other contributors
00007  *
00008  * Permission is hereby granted, free of charge, to any person obtaining a
00009  * copy of this Mozilla sample software and associated documentation files
00010  * (the "Software"), to deal in the Software without restriction, including
00011  * without limitation the rights to use, copy, modify, merge, publish,
00012  * distribute, sublicense, and/or sell copies of the Software, and to permit
00013  * persons to whom the Software is furnished to do so, subject to the
00014  * following conditions:
00015  *
00016  * The above copyright notice and this permission notice shall be included
00017  * in all copies or substantial portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00020  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00021  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00022  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00023  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00024  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00025  * DEALINGS IN THE SOFTWARE.
00026  *
00027  * Contributor(s):
00028  *   Adam Lock <adamlock@netscape.com>
00029  *
00030  * ***** END LICENSE BLOCK ***** */
00031 
00032 #if !defined(AFX_BROWSERTOOLTIP_H__13240069_1816_403C_A79D_306FD710B75A__INCLUDED_)
00033 #define AFX_BROWSERTOOLTIP_H__13240069_1816_403C_A79D_306FD710B75A__INCLUDED_
00034 
00035 #if _MSC_VER > 1000
00036 #pragma once
00037 #endif // _MSC_VER > 1000
00038 // BrowserToolTip.h : header file
00039 //
00040 
00042 // CBrowserToolTip window
00043 
00044 class CBrowserToolTip : public CWnd
00045 {
00046 // Construction
00047 public:
00048        CBrowserToolTip();
00049 
00050 // Attributes
00051 public:
00052 
00053 // Operations
00054 public:
00055 
00056 // Overrides
00057        // ClassWizard generated virtual function overrides
00058        //{{AFX_VIRTUAL(CBrowserToolTip)
00059        protected:
00060        virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00061        //}}AFX_VIRTUAL
00062 
00063        CString m_szTipText;
00064 // Implementation
00065 public:
00066        virtual ~CBrowserToolTip();
00067 
00068     BOOL Create(CWnd *pParentWnd);
00069        void SetTipText(const CString &szTipText);
00070     void Show(CWnd *pOverWnd, long left, long top);
00071     void Hide();
00072 
00073 
00074        // Generated message map functions
00075 protected:
00076        //{{AFX_MSG(CBrowserToolTip)
00077        afx_msg void OnPaint();
00078        //}}AFX_MSG
00079        DECLARE_MESSAGE_MAP()
00080 };
00081 
00083 
00084 //{{AFX_INSERT_LOCATION}}
00085 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00086 
00087 #endif // !defined(AFX_BROWSERTOOLTIP_H__13240069_1816_403C_A79D_306FD710B75A__INCLUDED_)