public class WinMessageHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
WinMessageHelper.CustomUser32
Support different signature of User32
|
| Modifier and Type | Field and Description |
|---|---|
static WinMessageHelper.CustomUser32 |
customUser32 |
| Constructor and Description |
|---|
WinMessageHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
embedInto(long parentHwndId,
Window childWindow,
int width,
int height,
int left,
int top,
AckListener callback)
Embeds a window in a target hWin
|
static void |
hookWndProc(com.sun.jna.platform.win32.WinDef.HWND hwnd,
WindowProcCallback callback)
Makes a connection between messages on a specified window handle
and the callback to be called when messages are received.
|
static void |
main(String[] argv) |
static String |
registryUserGetStringValue(String key,
String valueName) |
static void |
unhookWndProc(com.sun.jna.platform.win32.WinDef.HWND hwnd)
Removes the WindowProc and restores previous one
|
public static WinMessageHelper.CustomUser32 customUser32
public static void hookWndProc(com.sun.jna.platform.win32.WinDef.HWND hwnd,
WindowProcCallback callback)
hwnd - HWND of the windowcallback - callback for each messagepublic static void unhookWndProc(com.sun.jna.platform.win32.WinDef.HWND hwnd)
hwnd - HWND of the windowpublic static void embedInto(long parentHwndId,
Window childWindow,
int width,
int height,
int left,
int top,
AckListener callback)
parentHwndId - Parent window handlechildWindow - Child windowwidth - The change in the width of the windowheight - The change in the height of the windowleft - The left position of the windowtop - The top position of the windowcallback - callback for each messag
epublic static String registryUserGetStringValue(String key, String valueName)
public static void main(String[] argv)
Copyright © 2017. All rights reserved.