Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / qa / testembed / BrowserToolTip.h
blob5059974d3201a7e03a83bd06fe09f6b72aa5882c
1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
14 * The Original Code is mozilla.org Code.
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 2001
19 * the Initial Developer. All Rights Reserved.
21 * Contributor(s):
22 * Adam Lock <adamlock@netscape.com>
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
38 #if !defined(AFX_BROWSERTOOLTIP_H__13240069_1816_403C_A79D_306FD710B75A__INCLUDED_)
39 #define AFX_BROWSERTOOLTIP_H__13240069_1816_403C_A79D_306FD710B75A__INCLUDED_
41 #if _MSC_VER > 1000
42 #pragma once
43 #endif // _MSC_VER > 1000
44 // BrowserToolTip.h : header file
47 /////////////////////////////////////////////////////////////////////////////
48 // CBrowserToolTip window
50 class CBrowserToolTip : public CWnd
52 // Construction
53 public:
54 CBrowserToolTip();
56 // Attributes
57 public:
59 // Operations
60 public:
62 // Overrides
63 // ClassWizard generated virtual function overrides
64 //{{AFX_VIRTUAL(CBrowserToolTip)
65 protected:
66 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
67 //}}AFX_VIRTUAL
69 CString m_szTipText;
70 // Implementation
71 public:
72 virtual ~CBrowserToolTip();
74 BOOL Create(CWnd *pParentWnd);
75 void SetTipText(const CString &szTipText);
76 void Show(CWnd *pOverWnd, long left, long top);
77 void Hide();
80 // Generated message map functions
81 protected:
82 //{{AFX_MSG(CBrowserToolTip)
83 afx_msg void OnPaint();
84 //}}AFX_MSG
85 DECLARE_MESSAGE_MAP()
88 /////////////////////////////////////////////////////////////////////////////
90 //{{AFX_INSERT_LOCATION}}
91 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
93 #endif // !defined(AFX_BROWSERTOOLTIP_H__13240069_1816_403C_A79D_306FD710B75A__INCLUDED_)