Extra window message support

This commit is contained in:
2014-05-06 10:17:35 -04:00
parent 4320110fb7
commit 9e4660774d
2 changed files with 6 additions and 0 deletions

View File

@@ -104,6 +104,9 @@ namespace Common.Native
DwmCompositionChanged = 0x031e,
User = 0x0400,
App = 0x8000,
EnterSizeMove = 0x0231,
ExitSizeMove = 0x0232
}
public enum HitTestValues

View File

@@ -155,6 +155,9 @@ namespace Common.Native
[DllImport("user32.dll")]
public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, int nIndex, IntPtr dwNewLong);
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern uint RegisterWindowMessage(string lpString);
public static IntPtr SetWindowLongPtrSmart(IntPtr hWnd, int nIndex, IntPtr dwNewLong)
{
if (IntPtr.Size == 8)