com.openfin.desktop.win32
Class WinMessageHelper
java.lang.Object
com.openfin.desktop.win32.WinMessageHelper
public class WinMessageHelper
- extends Object
Helper class for hooking into Windows messages
Created by wche on 3/11/15.
|
Method Summary |
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 |
unhookWndProc(com.sun.jna.platform.win32.WinDef.HWND hwnd)
Removes the WindowProc and restores previous one |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
customUser32
public static WinMessageHelper.CustomUser32 customUser32
WinMessageHelper
public WinMessageHelper()
hookWndProc
public 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.
- Parameters:
hwnd - HWND of the windowcallback - callback for each message
unhookWndProc
public static void unhookWndProc(com.sun.jna.platform.win32.WinDef.HWND hwnd)
- Removes the WindowProc and restores previous one
- Parameters:
hwnd - HWND of the window
embedInto
public static void embedInto(long parentHwndId,
Window childWindow,
int width,
int height,
int left,
int top,
AckListener callback)
- Embeds a window in a target hWin
- Parameters:
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
e
Copyright © 2016. All rights reserved.