mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Added a color picker, a modified Patch #3487158. Still needs some additional checks, if all resources are correctly freed etc.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1654 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
0f65452e6c
commit
63f71138cf
10 changed files with 625 additions and 2 deletions
|
@ -453,6 +453,21 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
|
||||
[DllImport("user32", SetLastError = true)]
|
||||
public static extern bool DrawIcon(IntPtr hDC, int X, int Y, IntPtr hIcon);
|
||||
|
||||
[DllImport("user32", SetLastError = true)]
|
||||
public static extern IntPtr SetCapture(IntPtr hWnd);
|
||||
|
||||
[DllImport("user32", SetLastError = true)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern bool ReleaseCapture();
|
||||
|
||||
[DllImport("user32", SetLastError = true)]
|
||||
public static extern int GetSystemMetrics(SystemMetric index);
|
||||
|
||||
[DllImport("user32", SetLastError = true)]
|
||||
public static extern IntPtr CreateIconIndirect(ref IconInfo icon);
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue