mirror of https://github.com/dahall/Vanara.git
Updated documentation for NOTIFYICONIDENTIFIER and added constructors.
parent
e886259eef
commit
e3ec9d17d7
|
@ -3696,8 +3696,8 @@ namespace Vanara.PInvoke
|
|||
/// <summary>
|
||||
/// <para>Type: <c>HWND</c></para>
|
||||
/// <para>
|
||||
/// A handle to the parent window used by the notification's callback function. For more information, see the member of the
|
||||
/// NOTIFYICONDATA structure.
|
||||
/// A handle to the parent window used by the notification's callback function. For more information, see the <see
|
||||
/// cref="NOTIFYICONDATA.hwnd"/> member of the NOTIFYICONDATA structure.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public HWND hWnd;
|
||||
|
@ -3705,8 +3705,8 @@ namespace Vanara.PInvoke
|
|||
/// <summary>
|
||||
/// <para>Type: <c>UINT</c></para>
|
||||
/// <para>
|
||||
/// The application-defined identifier of the notification icon. Multiple icons can be associated with a single , each with their
|
||||
/// own .
|
||||
/// The application-defined identifier of the notification icon. Multiple icons can be associated with a single <c>hWnd</c>,
|
||||
/// each with their own <c>uID</c>.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public uint uID;
|
||||
|
@ -3716,6 +3716,27 @@ namespace Vanara.PInvoke
|
|||
/// <para>A registered GUID that identifies the icon. Use <c>GUID_NULL</c> if the icon is not identified by a GUID.</para>
|
||||
/// </summary>
|
||||
public Guid guidItem;
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="NOTIFYICONIDENTIFIER"/> struct.</summary>
|
||||
/// <param name="hWnd">A handle to the parent window used by the notification's callback function.</param>
|
||||
/// <param name="uID">The application-defined identifier of the notification icon.</param>
|
||||
public NOTIFYICONIDENTIFIER(HWND hWnd, uint uID)
|
||||
{
|
||||
cbSize = (uint)Marshal.SizeOf(typeof(NOTIFYICONIDENTIFIER));
|
||||
this.hWnd = hWnd;
|
||||
this.uID = uID;
|
||||
guidItem = default;
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="NOTIFYICONIDENTIFIER"/> struct.</summary>
|
||||
/// <param name="guidItem">A registered GUID that identifies the icon.</param>
|
||||
public NOTIFYICONIDENTIFIER(Guid guidItem)
|
||||
{
|
||||
cbSize = (uint)Marshal.SizeOf(typeof(NOTIFYICONIDENTIFIER));
|
||||
this.hWnd = default;
|
||||
this.uID = default;
|
||||
this.guidItem = guidItem;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Contains information used by ShellExecuteEx.</summary>
|
||||
|
|
Loading…
Reference in New Issue