mirror of
https://github.com/ckaczor/Common.Native.git
synced 2026-02-11 02:32:39 -05:00
Extra window message support
This commit is contained in:
@@ -104,6 +104,9 @@ namespace Common.Native
|
|||||||
DwmCompositionChanged = 0x031e,
|
DwmCompositionChanged = 0x031e,
|
||||||
User = 0x0400,
|
User = 0x0400,
|
||||||
App = 0x8000,
|
App = 0x8000,
|
||||||
|
|
||||||
|
EnterSizeMove = 0x0231,
|
||||||
|
ExitSizeMove = 0x0232
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum HitTestValues
|
public enum HitTestValues
|
||||||
|
|||||||
@@ -155,6 +155,9 @@ namespace Common.Native
|
|||||||
[DllImport("user32.dll")]
|
[DllImport("user32.dll")]
|
||||||
public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, int nIndex, IntPtr dwNewLong);
|
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)
|
public static IntPtr SetWindowLongPtrSmart(IntPtr hWnd, int nIndex, IntPtr dwNewLong)
|
||||||
{
|
{
|
||||||
if (IntPtr.Size == 8)
|
if (IntPtr.Size == 8)
|
||||||
|
|||||||
Reference in New Issue
Block a user