namespace Microsoft.Win32
{
//TTM定义
public static partial class NativeMethods
{
///
/// Activates or deactivates a tooltip control.
///
public const int TTM_ACTIVATE = WM_USER + 1;
///
/// Sets the initial, pop-up, and reshow durations for a tooltip control.
///
public const int TTM_SETDELAYTIME = WM_USER + 3;
///
/// Registers a tool with a tooltip control.
///
public const int TTM_ADDTOOL = WM_USER + 50;
///
/// Removes a tool from a tooltip control.
///
public const int TTM_DELTOOL = WM_USER + 51;
///
/// Sets a new bounding rectangle for a tool.
///
public const int TTM_NEWTOOLRECT = WM_USER + 52;
///
/// Passes a mouse message to a tooltip control for processing.
///
public const int TTM_RELAYEVENT = WM_USER + 7;
///
/// Retrieves the information that a tooltip control maintains about a tool.
///
public const int TTM_GETTOOLINFO = WM_USER + 53;
///
/// Sets the information that a tooltip control maintains for a tool.
///
public const int TTM_SETTOOLINFO = WM_USER + 54;
///
/// 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.
///
public const int TTM_HITTEST = WM_USER + 55;
///
/// Retrieves the information a tooltip control maintains about a tool.
///
public const int TTM_GETTEXT = WM_USER + 56;
///
/// Sets the tooltip text for a tool.
///
public const int TTM_UPDATETIPTEXT = WM_USER + 57;
///
/// Retrieves a count of the tools maintained by a tooltip control.
///
public const int TTM_GETTOOLCOUNT = WM_USER + 13;
///
/// Retrieves the information that a tooltip control maintains about the current tool—that is, the tool for which the tooltip is currently displaying text.
///
public const int TTM_ENUMTOOLS = WM_USER + 58;
///
/// Retrieves the information for the current tool in a tooltip control.
///
public const int TTM_GETCURRENTTOOL = WM_USER + 59;
///
/// Allows a subclass procedure to cause a tooltip to display text for a window other than the one beneath the mouse cursor.
///
public const int TTM_WINDOWFROMPOINT = WM_USER + 16;
///
/// Activates or deactivates a tracking tooltip.
///
public const int TTM_TRACKACTIVATE = WM_USER + 17;
///
/// Sets the position of a tracking tooltip.
///
public const int TTM_TRACKPOSITION = WM_USER + 18;
///
/// Sets the background color in a tooltip window.
///
public const int TTM_SETTIPBKCOLOR = WM_USER + 19;
///
/// Sets the text color in a tooltip window.
///
public const int TTM_SETTIPTEXTCOLOR = WM_USER + 20;
///
/// Retrieves the initial, pop-up, and reshow durations currently set for a tooltip control.
///
public const int TTM_GETDELAYTIME = WM_USER + 21;
///
/// Retrieves the background color in a tooltip window.
///
public const int TTM_GETTIPBKCOLOR = WM_USER + 22;
///
/// Retrieves the text color in a tooltip window.
///
public const int TTM_GETTIPTEXTCOLOR = WM_USER + 23;
///
/// Sets the maximum width for a tooltip window.
///
public const int TTM_SETMAXTIPWIDTH = WM_USER + 24;
///
/// Retrieves the maximum width for a tooltip window.
///
public const int TTM_GETMAXTIPWIDTH = WM_USER + 25;
///
/// 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.
///
public const int TTM_SETMARGIN = WM_USER + 26;
///
/// 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.
///
public const int TTM_GETMARGIN = WM_USER + 27;
///
/// Removes a displayed tooltip window from view.
///
public const int TTM_POP = WM_USER + 28;
///
/// Forces the current tooltip to be redrawn.
///
public const int TTM_UPDATE = WM_USER + 29;
///
/// Returns the width and height of a tooltip control.
///
public const int TTM_GETBUBBLESIZE = WM_USER + 30;
///
/// 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.
///
public const int TTM_ADJUSTRECT = WM_USER + 31;
///
/// Adds a standard icon and title string to a tooltip.
///
public const int TTM_SETTITLE = WM_USER + 33;
///
/// Causes the tooltip to display at the coordinates of the last mouse message.
///
public const int TTM_POPUP = WM_USER + 34;
///
/// Retrieve information concerning the title of a tooltip control.
///
public const int TTM_GETTITLE = WM_USER + 35;
///
/// Sets the visual style of a tooltip control.
///
public const int TTM_SETWINDOWTHEME = 0x200B;
}
}