|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.util.win32.WindowUtil
public class WindowUtil
Utility class for window handle.
Field Summary | |
---|---|
static int |
HWND_BOTTOM
|
static int |
HWND_NOTOPMOST
|
static int |
HWND_TOP
|
static int |
HWND_TOPMOST
|
static int |
LWA_ALPHA
|
static int |
LWA_COLORKEY
|
static int |
SWP_NOMOVE
|
static int |
SWP_NOSIZE
|
static int |
WS_EX_LAYERED
|
Constructor Summary | |
---|---|
WindowUtil()
|
Method Summary | |
---|---|
static boolean |
BringWindowToTop(int hWnd)
Bring target Window to top |
static int |
FindWindow(String windowClass,
String windowName)
Find target window |
static int |
GetChildWindow(int hWnd)
Get child window |
static int |
GetDesktopWindow()
Get desktop window |
static int |
GetNextWindow(int hWnd)
Get next window |
static int |
GetOwnerWindow(int hWnd)
Get owner window |
static int |
GetParentWindow(int hWnd)
Get parent window |
static String |
GetWindowClassName(int hWnd)
Get window class name |
static org.eclipse.swt.graphics.Rectangle |
GetWindowRectangle(int hWnd)
Get window rectangle |
static String |
GetWindowText(int hWnd)
Get window text. |
static boolean |
isPopupMenu(int hwnd)
Check if target is popup menu |
static boolean |
IsWindowVisible(int hWnd)
Check if target window is visible |
static boolean |
SetWindowPos(int hWnd,
int hWndInsertAfter,
int X,
int Y,
int cx,
int cy,
int uFlags)
Change size, position and Z order of a target Window. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HWND_TOP
public static final int HWND_TOPMOST
public static final int HWND_NOTOPMOST
public static final int HWND_BOTTOM
public static final int SWP_NOSIZE
public static final int SWP_NOMOVE
public static final int WS_EX_LAYERED
public static final int LWA_COLORKEY
public static final int LWA_ALPHA
Constructor Detail |
---|
public WindowUtil()
Method Detail |
---|
public static String GetWindowText(int hWnd)
hWnd
- target window
public static String GetWindowClassName(int hWnd)
hWnd
- target window
public static org.eclipse.swt.graphics.Rectangle GetWindowRectangle(int hWnd)
hWnd
- target window
public static boolean IsWindowVisible(int hWnd)
hWnd
- target window
public static int GetDesktopWindow()
public static int GetChildWindow(int hWnd)
hWnd
- target window
public static int GetNextWindow(int hWnd)
hWnd
- target window
public static int GetOwnerWindow(int hWnd)
hWnd
- target window
public static int GetParentWindow(int hWnd)
hWnd
- target window
public static boolean isPopupMenu(int hwnd)
hwnd
- target window
public static int FindWindow(String windowClass, String windowName)
windowClass
- class namewindowName
- window name
public static boolean BringWindowToTop(int hWnd)
hWnd
- target window
public static boolean SetWindowPos(int hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags)
hWnd
- target windowhWndInsertAfter
- the window to precede the positioned window in the Z order, or
one of the following values (HWND_BOTTOM, HWND_NOTOPMOST,
HWND_TOP, HWND_TOPMOST)X
- new position XY
- new position Ycx
- new widthcy
- new heightuFlags
- window sizing and positioning flags.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |