Struct User32.Types.HWND
public struct User32.Types.HWND
- Inherited Members
Constructors
HWND(nint)
public HWND(nint value)
Parameters
valuenint
Fields
HWND_NOTOPMOST
public static readonly User32.Types.HWND HWND_NOTOPMOST
Field Value
HWND_TOPMOST
public static readonly User32.Types.HWND HWND_TOPMOST
Field Value
value
public nint value
Field Value
Properties
DPI
Gets the DPI scale for this window. 1.0 = 100% DPI (96 DPI), 2.0 = 200% DPI (192 DPI).
public uint DPI { get; }
Property Value
DPIScale
public NFloat DPIScale { get; }
Property Value
IsMaximized
public bool IsMaximized { get; }
Property Value
Value
public nint Value { get; }
Property Value
Methods
BeginPaint(ref PAINTSTRUCT)
public Types.HDC BeginPaint(ref User32.PAINTSTRUCT lpPaint)
Parameters
lpPaintUser32.PAINTSTRUCT
Returns
BeginPaint(HWND, ref PAINTSTRUCT)
public static Types.HDC BeginPaint(User32.Types.HWND hWnd, ref User32.PAINTSTRUCT lpPaint)
Parameters
hWndUser32.Types.HWNDlpPaintUser32.PAINTSTRUCT
Returns
CaptureMouse()
public User32.Types.HWND CaptureMouse()
Returns
DefWindowProc(HWND, WindowMessage, WPARAM, LPARAM)
public static extern Types.LRESULT DefWindowProc(User32.Types.HWND hWnd, User32.WindowMessage uMsg, Types.WPARAM wParam, Types.LPARAM lParam)
Parameters
Returns
DefWindowProc(WindowMessage, WPARAM, LPARAM)
public Types.LRESULT DefWindowProc(User32.WindowMessage uMsg, Types.WPARAM wParam, Types.LPARAM lParam)
Parameters
Returns
EndPaint(ref PAINTSTRUCT)
public bool EndPaint(ref User32.PAINTSTRUCT lpPaint)
Parameters
lpPaintUser32.PAINTSTRUCT
Returns
EndPaint(HWND, ref PAINTSTRUCT)
public static Types.BOOL EndPaint(User32.Types.HWND hWnd, ref User32.PAINTSTRUCT lpPaint)
Parameters
hWndUser32.Types.HWNDlpPaintUser32.PAINTSTRUCT
Returns
GetClientRect(out RECT)
public bool GetClientRect(out User32.RECT rect)
Parameters
Returns
GetClientRect(HWND, out RECT)
public static bool GetClientRect(User32.Types.HWND hWnd, out User32.RECT rc)
Parameters
Returns
GetDpiForWindow(HWND)
public static extern uint GetDpiForWindow(User32.Types.HWND hwnd)
Parameters
Returns
GetWindowRect(out RECT)
public bool GetWindowRect(out User32.RECT rect)
Parameters
Returns
GetWindowRect(HWND, out RECT)
public static bool GetWindowRect(User32.Types.HWND hWnd, out User32.RECT lpRect)
Parameters
Returns
GetWindowText(out string, int)
public int GetWindowText(out string text, int maxLength)
Parameters
Returns
GetWindowText(HWND, out string, int)
public static int GetWindowText(User32.Types.HWND hWnd, out string lpString, int maxLength)
Parameters
Returns
Invalidate()
public void Invalidate()
InvalidateRect(HWND, nint, bool)
public static bool InvalidateRect(User32.Types.HWND hWnd, nint rectPtr, bool erase)
Parameters
Returns
InvalidateRect(HWND, ref RECT, bool)
public static bool InvalidateRect(User32.Types.HWND hWnd, ref User32.RECT rect, bool erase)
Parameters
Returns
IsZoomed(HWND)
public static bool IsZoomed(User32.Types.HWND hWnd)
Parameters
Returns
ReleaseCapture()
public static bool ReleaseCapture()
Returns
ScreenToClient(ref POINT)
public bool ScreenToClient(ref User32.POINT point)
Parameters
Returns
ScreenToClient(HWND, ref POINT)
public static Types.BOOL ScreenToClient(User32.Types.HWND hWnd, ref User32.POINT lpPoint)
Parameters
Returns
SetCapture(HWND)
public static extern User32.Types.HWND SetCapture(User32.Types.HWND hWnd)
Parameters
Returns
SetWindowPos(HWND, HWND, int, int, int, int, SetWindowPosFlags)
public static bool SetWindowPos(User32.Types.HWND hWnd, User32.Types.HWND hWndInsertAfter, int X, int Y, int cx, int cy, User32.Types.SetWindowPosFlags uFlags)
Parameters
hWndUser32.Types.HWNDhWndInsertAfterUser32.Types.HWNDXintYintcxintcyintuFlagsUser32.Types.SetWindowPosFlags
Returns
SetWindowText(string)
public bool SetWindowText(string text)
Parameters
textstring
Returns
SetWindowText(HWND, string)
public static bool SetWindowText(User32.Types.HWND hWnd, string lpString)
Parameters
Returns
ShowWindow(int)
public void ShowWindow(int nCmdShow = 1)
Parameters
nCmdShowint
ShowWindow(HWND, int)
public static bool ShowWindow(User32.Types.HWND hWnd, int nCmdShow)
Parameters
Returns
UpdateWindow()
public bool UpdateWindow()
Returns
UpdateWindow(HWND)
public static bool UpdateWindow(User32.Types.HWND hWnd)
Parameters
Returns
Operators
implicit operator HWND(nint)
public static implicit operator User32.Types.HWND(nint v)
Parameters
vnint
Returns
implicit operator nint(HWND)
public static implicit operator nint(User32.Types.HWND v)