1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| #pragma once
|
| namespace SOUI
| {
| class CTipWnd : public SHostWnd
| {
| public:
| CTipWnd(const SStringT & strLayout);
| ~CTipWnd();
|
| enum AnchorType{
| AT_LEFT_TOP,
| AT_LEFT_BOTTOM,
| AT_RIGHT_TOP,
| AT_RIGHT_BOTTOM,
| };
| static void SetLayout(LPCTSTR pszLayout);
| static void ShowTip(int x, int y, AnchorType at, const SStringT & strTip);
| protected:
| virtual void OnFinalMessage(HWND hWnd);
|
| void SetTip(const SStringT & strTip);
|
| void OnWindowPosChanging(LPWINDOWPOS lpWndPos);
|
| void OnTimer(UINT_PTR timerID);
| BEGIN_MSG_MAP_EX(CTipWnd)
| MSG_WM_TIMER(OnTimer)
| MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging)
| CHAIN_MSG_MAP(SHostWnd)
| END_MSG_MAP()
|
| CPoint m_ptAnchor;
| AnchorType m_anchorType;
| };
| }
|
|