diff options
author | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-05-05 12:15:08 +0000 |
---|---|---|
committer | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-05-05 12:15:08 +0000 |
commit | 653261a27182e9c8969ed074f0da9ec4dba920b1 (patch) | |
tree | 00a8878163293b6a69c999bbd106d9ccefa2ed69 /Tooltip_Notify/src/Tooltip.h | |
parent | 4314e4924b2ddb9aea86b39d6d683fcc3f7b1822 (diff) |
added Tooltip Notofy
added Zero Notification
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@72 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'Tooltip_Notify/src/Tooltip.h')
-rw-r--r-- | Tooltip_Notify/src/Tooltip.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Tooltip_Notify/src/Tooltip.h b/Tooltip_Notify/src/Tooltip.h new file mode 100644 index 0000000..fc97348 --- /dev/null +++ b/Tooltip_Notify/src/Tooltip.h @@ -0,0 +1,55 @@ +// Tooltip.h: interface for the CTooltip class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#pragma once
+
+class CTooltipNotify;
+
+class CTooltip
+{
+public:
+
+ CTooltip(CTooltipNotify *pTooltipNotify);
+ virtual ~CTooltip();
+
+ HWND GetHandle() const { return m_hWnd; }
+ VOID Hide();
+ VOID Show();
+ VOID Validate();
+ VOID set_Position(INT x, INT y);
+ VOID get_Rect(RECT *Rect) const;
+ VOID set_TransparentInput(BOOL bOnOff);
+ VOID set_Translucency(BYTE bAlpha);
+ VOID set_Text(const TCHAR* szText);
+ VOID set_Font(const LOGFONT& Font) { m_lfFont = Font; }
+ VOID set_TextColor(DWORD TextColor) { m_dwTextColor = TextColor; }
+ VOID set_BgColor(DWORD BgColor) { m_dwBgColor = BgColor; }
+
+ static void Initialize(HMODULE hInstance);
+ static void Deinitialize(HMODULE hInstance);
+
+private:
+ // prohibit copying
+ CTooltip(const CTooltip& rhs);
+ CTooltip& operator= (const CTooltip& rhs);
+
+private:
+ static LRESULT CALLBACK WindowProcWrapper(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
+ LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
+
+ HWND m_hWnd;
+ HFONT m_hFont;
+
+ // tooltip parameters
+ DWORD m_dwTextColor;
+ DWORD m_dwBgColor;
+ LOGFONT m_lfFont;
+ TCHAR *m_szText;
+ BYTE m_bAlpha;
+ BOOL m_bTranspInput;
+ BYTE m_bLDblClick;
+
+ CTooltipNotify *m_pTooltipNotify;
+ static const TCHAR *s_szTooltipClass;
+};
|