Class WndUtil
Miscellaneous window-related functions. Rarely used in automation scripts.
public static class WndUtil
Namespace: Au.More
Assembly: Au.dll
Methods
Name | Description |
---|---|
CreateMessageOnlyWindow(WNDPROC, string, string) | Creates native/unmanaged message-only window and sets its window procedure. |
CreateMessageOnlyWindow(string, string) | Creates native/unmanaged message-only window. |
CreateWindow(WNDPROC, bool, string, string, WS, WSE, int, int, int, int, wnd, nint, nint, nint) | Creates native/unmanaged window (API CreateWindowEx) and sets its window procedure. |
CreateWindow(string, string, WS, WSE, int, int, int, int, wnd, nint, nint, nint) | Creates native/unmanaged window. |
DefSubclassProc(wnd, int, nint, nint) | Let your callback function used with WndUtil.Subclass call this function and return its return value. After or before processing the message. |
DestroyWindow(wnd) | Destroys a native window of this thread. Calls API DestroyWindow. |
DragLoop(AnyWnd, MButtons, Action<WDLArgs>) | Simple non-OLE drag operation. |
EnableActivate(int) | Temporarily enables this process to activate windows with API SetForegroundWindow. |
GetClassLong(wnd, int) | Calls API GetClassLongPtr. |
GetWindowsStoreAppId(wnd, bool, bool) | Gets window Windows Store app user model id, like |
PostThreadMessage(int, int, nint, nint) | Calls API PostThreadMessage. |
PrintMsg(in MSG, PrintMsgOptions, string) | Writes a Windows message to the output, unless it is specified in options. |
PrintMsg(wnd, int, nint, nint, PrintMsgOptions, string) | Writes a Windows message to the output, unless it is specified in options. |
PrintMsg(out string, in MSG, PrintMsgOptions, string) | Writes a Windows message to a string.
If the message is specified in options, sets |
PrintMsg(out string, wnd, int, nint, nint, PrintMsgOptions, string) | Writes a Windows message to a string.
If the message is specified in options, sets |
RegisterMessage(string, bool) | Calls API RegisterWindowMessage. |
RegisterWindowClass(string, WNDPROC, RWCEtc) | Registers new window class in this process. |
SetFont(wnd, nint) | Sets font. |
SetOwnerWindow(wnd, wnd) | Changes the owner window. |
Subclass(wnd, WNDPROC) | Subclasses a window. |
UacEnableMessages(params int[]) | Calls API ChangeWindowMessageFilter for each message in the list of messages. It allows processes of lower UAC integrity level to send these messages to this process. |
Unsubclass(object) | Unsubclasses window subclassed by WndUtil.Subclass. Unsubclassing is optional; the window is implicitly unsubclassed when closed. |
WaitForAnActiveWindow(bool) | Waits while there is no active window. |