mirror of
https://github.com/ckaczor/Common.Native.git
synced 2026-01-19 17:23:19 -05:00
Add function to send system commands to a window
This commit is contained in:
@@ -69,6 +69,11 @@ namespace Common.Native
|
||||
User32.SetWindowPlacement(hWnd, ref windowPlacement);
|
||||
}
|
||||
|
||||
public static void SystemCommand(IntPtr hWnd, Constants.SysCommand command)
|
||||
{
|
||||
User32.SendMessage(hWnd, (uint) Constants.WindowMessage.SysCommand, (IntPtr) command, IntPtr.Zero);
|
||||
}
|
||||
|
||||
public static Icon GetSmallIcon(IntPtr hWnd)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user