|
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981
using global::System;
using global::System.Diagnostics;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Runtime.CompilerServices;
using global::System.Runtime.InteropServices;
using global::System.Runtime.Versioning;
using winmdroot = global::Windows.Win32;
namespace Windows.Win32
{
namespace UI.Controls
{
/// <summary>Informs the system of the dimensions of an owner-drawn control or menu item. This allows the system to process user interaction with the control correctly.</summary>
/// <remarks>
/// <para>The owner window of an owner-drawn control receives a pointer to the <b>MEASUREITEMSTRUCT</b> structure as the <i>lParam</i> parameter of a <a href="https://docs.microsoft.com/windows/desktop/Controls/wm-measureitem">WM_MEASUREITEM</a> message. The owner-drawn control sends this message to its owner window when the control is created. The owner then fills in the appropriate members in the structure for the control and returns. This structure is common to all owner-drawn controls except the owner-drawn button control whose size is predetermined by its window. If an application does not fill the appropriate members of <b>MEASUREITEMSTRUCT</b>, the control or menu item may not be drawn properly.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/winuser/ns-winuser-measureitemstruct#">Read more on docs.microsoft.com</see>.</para>
/// </remarks>
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal partial struct MEASUREITEMSTRUCT
{
/// <summary>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b> The control type. This member can be one of the values shown in the following table. </para>
/// <para>This doc was truncated.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/winuser/ns-winuser-measureitemstruct#members">Read more on docs.microsoft.com</see>.</para>
/// </summary>
internal winmdroot.UI.Controls.DRAWITEMSTRUCT_CTL_TYPE CtlType;
/// <summary>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b> The identifier of the combo box or list box. This member is not used for a menu.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/winuser/ns-winuser-measureitemstruct#members">Read more on docs.microsoft.com</see>.</para>
/// </summary>
internal uint CtlID;
/// <summary>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b> The identifier for a menu item or the position of a list box or combo box item. This value is specified for a list box only if it has the <a href="https://docs.microsoft.com/windows/desktop/Controls/list-box-styles">LBS_OWNERDRAWVARIABLE</a> style; this value is specified for a combo box only if it has the <a href="https://docs.microsoft.com/windows/desktop/Controls/combo-box-styles">CBS_OWNERDRAWVARIABLE</a> style.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/winuser/ns-winuser-measureitemstruct#members">Read more on docs.microsoft.com</see>.</para>
/// </summary>
internal uint itemID;
/// <summary>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b> The width, in pixels, of a menu item. Before returning from the message, the owner of the owner-drawn menu item must fill this member.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/winuser/ns-winuser-measureitemstruct#members">Read more on docs.microsoft.com</see>.</para>
/// </summary>
internal uint itemWidth;
/// <summary>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b> The height, in pixels, of an individual item in a list box or a menu. Before returning from the message, the owner of the owner-drawn combo box, list box, or menu item must fill out this member.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/winuser/ns-winuser-measureitemstruct#members">Read more on docs.microsoft.com</see>.</para>
/// </summary>
internal uint itemHeight;
/// <summary>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">ULONG_PTR</a></b> The application-defined value associated with the menu item. For a control, this member specifies the value last assigned to the list box or combo box by the <a href="https://docs.microsoft.com/windows/desktop/Controls/lb-setitemdata">LB_SETITEMDATA</a> or <a href="https://docs.microsoft.com/windows/desktop/Controls/cb-setitemdata">CB_SETITEMDATA</a> message. If the list box or combo box has the LB_HASSTRINGS or CB_HASSTRINGS style, this value is initially zero. Otherwise, this value is initially the value passed to the list box or combo box in the <i>lParam</i> parameter of one of the following messages:</para>
/// <para></para>
/// <para>This doc was truncated.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/winuser/ns-winuser-measureitemstruct#members">Read more on docs.microsoft.com</see>.</para>
/// </summary>
internal nuint itemData;
}
}
}
|