tangxu
2024-10-22 4d9fe5ed98ceb6b8fe9dc52ebfb80860ad1aee99
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
namespace Microsoft.Win32
{
    //TTM定义
    public static partial class NativeMethods
    {
        /// <summary>
        /// Activates or deactivates a tooltip control.
        /// </summary>
        public const int TTM_ACTIVATE = WM_USER + 1;
        /// <summary>
        /// Sets the initial, pop-up, and reshow durations for a tooltip control.
        /// </summary>
        public const int TTM_SETDELAYTIME = WM_USER + 3;
        /// <summary>
        /// Registers a tool with a tooltip control.
        /// </summary>
        public const int TTM_ADDTOOL = WM_USER + 50;
        /// <summary>
        /// Removes a tool from a tooltip control.
        /// </summary>
        public const int TTM_DELTOOL = WM_USER + 51;
        /// <summary>
        /// Sets a new bounding rectangle for a tool.
        /// </summary>
        public const int TTM_NEWTOOLRECT = WM_USER + 52;
        /// <summary>
        /// Passes a mouse message to a tooltip control for processing.
        /// </summary>
        public const int TTM_RELAYEVENT = WM_USER + 7;
        /// <summary>
        /// Retrieves the information that a tooltip control maintains about a tool.
        /// </summary>
        public const int TTM_GETTOOLINFO = WM_USER + 53;
        /// <summary>
        /// Sets the information that a tooltip control maintains for a tool.
        /// </summary>
        public const int TTM_SETTOOLINFO = WM_USER + 54;
        /// <summary>
        /// Tests a point to determine whether it is within the bounding rectangle of the specified tool and, if it is, retrieves information about the tool.
        /// </summary>
        public const int TTM_HITTEST = WM_USER + 55;
        /// <summary>
        /// Retrieves the information a tooltip control maintains about a tool.
        /// </summary>
        public const int TTM_GETTEXT = WM_USER + 56;
        /// <summary>
        /// Sets the tooltip text for a tool.
        /// </summary>
        public const int TTM_UPDATETIPTEXT = WM_USER + 57;
        /// <summary>
        /// Retrieves a count of the tools maintained by a tooltip control.
        /// </summary>
        public const int TTM_GETTOOLCOUNT = WM_USER + 13;
        /// <summary>
        /// Retrieves the information that a tooltip control maintains about the current tool—that is, the tool for which the tooltip is currently displaying text.
        /// </summary>
        public const int TTM_ENUMTOOLS = WM_USER + 58;
        /// <summary>
        /// Retrieves the information for the current tool in a tooltip control.
        /// </summary>
        public const int TTM_GETCURRENTTOOL = WM_USER + 59;
        /// <summary>
        /// Allows a subclass procedure to cause a tooltip to display text for a window other than the one beneath the mouse cursor.
        /// </summary>
        public const int TTM_WINDOWFROMPOINT = WM_USER + 16;
        /// <summary>
        /// Activates or deactivates a tracking tooltip.
        /// </summary>
        public const int TTM_TRACKACTIVATE = WM_USER + 17;
        /// <summary>
        /// Sets the position of a tracking tooltip.
        /// </summary>
        public const int TTM_TRACKPOSITION = WM_USER + 18;
        /// <summary>
        /// Sets the background color in a tooltip window.
        /// </summary>
        public const int TTM_SETTIPBKCOLOR = WM_USER + 19;
        /// <summary>
        /// Sets the text color in a tooltip window.
        /// </summary>
        public const int TTM_SETTIPTEXTCOLOR = WM_USER + 20;
        /// <summary>
        /// Retrieves the initial, pop-up, and reshow durations currently set for a tooltip control.
        /// </summary>
        public const int TTM_GETDELAYTIME = WM_USER + 21;
        /// <summary>
        /// Retrieves the background color in a tooltip window.
        /// </summary>
        public const int TTM_GETTIPBKCOLOR = WM_USER + 22;
        /// <summary>
        /// Retrieves the text color in a tooltip window.
        /// </summary>
        public const int TTM_GETTIPTEXTCOLOR = WM_USER + 23;
        /// <summary>
        /// Sets the maximum width for a tooltip window.
        /// </summary>
        public const int TTM_SETMAXTIPWIDTH = WM_USER + 24;
        /// <summary>
        /// Retrieves the maximum width for a tooltip window.
        /// </summary>
        public const int TTM_GETMAXTIPWIDTH = WM_USER + 25;
        /// <summary>
        /// Sets the top, left, bottom, and right margins for a tooltip window. A margin is the distance, in pixels, between the tooltip window border and the text contained within the tooltip window.
        /// </summary>
        public const int TTM_SETMARGIN = WM_USER + 26;
        /// <summary>
        /// Retrieves the top, left, bottom, and right margins set for a tooltip window. A margin is the distance, in pixels, between the tooltip window border and the text contained within the tooltip window.
        /// </summary>
        public const int TTM_GETMARGIN = WM_USER + 27;
        /// <summary>
        /// Removes a displayed tooltip window from view.
        /// </summary>
        public const int TTM_POP = WM_USER + 28;
        /// <summary>
        /// Forces the current tooltip to be redrawn.
        /// </summary>
        public const int TTM_UPDATE = WM_USER + 29;
        /// <summary>
        /// Returns the width and height of a tooltip control.
        /// </summary>
        public const int TTM_GETBUBBLESIZE = WM_USER + 30;
        /// <summary>
        /// Calculates a tooltip control's text display rectangle from its window rectangle, or the tooltip window rectangle needed to display a specified text display rectangle.
        /// </summary>
        public const int TTM_ADJUSTRECT = WM_USER + 31;
        /// <summary>
        /// Adds a standard icon and title string to a tooltip.
        /// </summary>
        public const int TTM_SETTITLE = WM_USER + 33;
        /// <summary>
        /// Causes the tooltip to display at the coordinates of the last mouse message.
        /// </summary>
        public const int TTM_POPUP = WM_USER + 34;
        /// <summary>
        /// Retrieve information concerning the title of a tooltip control.
        /// </summary>
        public const int TTM_GETTITLE = WM_USER + 35;
        /// <summary>
        /// Sets the visual style of a tooltip control.
        /// </summary>
        public const int TTM_SETWINDOWTHEME = 0x200B;
    }
}