author | StephaneLenclud |
Sun, 15 Feb 2015 23:16:57 +0100 | |
changeset 67 | bda062e75e47 |
child 76 | 831ebeeecfdf |
permissions | -rw-r--r-- |
sl@45 | 1 |
using System; |
sl@45 | 2 |
using System.Runtime.InteropServices; |
sl@45 | 3 |
|
sl@45 | 4 |
namespace Win32 |
sl@45 | 5 |
{ |
sl@45 | 6 |
static public partial class Const |
sl@45 | 7 |
{ |
sl@45 | 8 |
public const int WM_APPCOMMAND = 0x0319; |
sl@45 | 9 |
} |
sl@45 | 10 |
|
sl@45 | 11 |
static public partial class Macro |
sl@45 | 12 |
{ |
sl@45 | 13 |
public static int GET_APPCOMMAND_LPARAM(IntPtr lParam) |
sl@45 | 14 |
{ |
sl@45 | 15 |
return ((short)HIWORD(lParam.ToInt32()) & ~Const.FAPPCOMMAND_MASK); |
sl@45 | 16 |
} |
sl@45 | 17 |
} |
sl@45 | 18 |
} |