mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-16 09:45:38 -05:00
WPF NotifyIcon
-------------- Initial import git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@52 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
31
Source/NotifyIconWpf/Interop/WindowClass.cs
Normal file
31
Source/NotifyIconWpf/Interop/WindowClass.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||
{
|
||||
/// <summary>
|
||||
/// Callback delegate which is used by the Windows API to
|
||||
/// submit window messages.
|
||||
/// </summary>
|
||||
public delegate long WindowProcedureHandler(IntPtr hwnd, uint uMsg, uint wparam, uint lparam);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Win API WNDCLASS struct - represents a single window.
|
||||
/// Used to receive window messages.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct WindowClass
|
||||
{
|
||||
public uint style;
|
||||
public WindowProcedureHandler lpfnWndProc;
|
||||
public int cbClsExtra;
|
||||
public int cbWndExtra;
|
||||
public IntPtr hInstance;
|
||||
public IntPtr hIcon;
|
||||
public IntPtr hCursor;
|
||||
public IntPtr hbrBackground;
|
||||
[MarshalAs(UnmanagedType.LPWStr)] public string lpszMenuName;
|
||||
[MarshalAs(UnmanagedType.LPWStr)] public string lpszClassName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user