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 |
embededViewSizeChange(long parentHwndId,
long childHwndId,
int width,
int height) |
static void |
embededViewSizeChange(long parentHwndId,
long childHwndId,
int left,
int top,
int width,
int height) |
static void |
embedInto(long parentHwndId,
long childHwndId,
int width,
int height,
AckListener callback) |
static void |
embedInto(long parentHwndId,
long childHwndId,
int left,
int top,
int width,
int height,
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,
long childHwndId,
int width,
int height,
AckListener callback)
public static void embedInto(long parentHwndId,
long childHwndId,
int left,
int top,
int width,
int height,
AckListener callback)
parentHwndId - Parent window handlechildHwndId - Child window handleleft - The new position of the left side of the window.top - The new position of the top of the window.width - The change in the width of the windowheight - The change in the height of the windowcallback - callback for each messag
epublic static void embededViewSizeChange(long parentHwndId,
long childHwndId,
int width,
int height)
public static void embededViewSizeChange(long parentHwndId,
long childHwndId,
int left,
int top,
int width,
int height)
public static String registryUserGetStringValue(String key, String valueName)
public static void main(String[] argv)
Copyright © 2019. All rights reserved.