使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 0408576e9da10015ffa9da0079b8c985113ce4b3
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;
    };
}