org.xvolks.jnative.util
Class User32
java.lang.Object
org.xvolks.jnative.util.User32
public class User32
- extends java.lang.Object
User32 this is the class wrapper to User32.dll.
When a developper needs a function of this DLL (s)he should add it here.
$Id: User32.java,v 1.6 2006/01/14 21:06:12 mdenty Exp $;
Field Summary |
static java.lang.String |
DLL_NAME
|
Method Summary |
static int |
createWindowEx(int dwExStyle,
java.lang.String lpClassName,
java.lang.String lpWindowName,
int dwStyle,
int x,
int y,
int nWidth,
int nHeight,
int hWndParent,
int hMenu,
int hInstance,
int lParam)
HWND CreateWindowEx(
DWORD dwExStyle,
LPCTSTR lpClassName,
LPCTSTR lpWindowName,
DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hWndParent, -3 for HWND_MESSAGE (Message only windows)
HMENU hMenu,
HINSTANCE hInstance,
LPVOID lpParam
); |
static LRESULT |
defWindowProc(HWND hwnd,
UINT msg,
WPARAM wparam,
LPARAM lparam)
|
static void |
dispatchMessage(MSG msg)
|
static int |
getMessage(MSG msg,
HWND hwnd,
int minMSG,
int maxMSG)
|
static int |
messageBox(int parentHandle,
java.lang.String message,
java.lang.String caption,
int buttons)
|
static boolean |
showWindow(HWND hwnd,
int nCmdShow)
|
static void |
translateMessage(MSG msg)
|
static void |
updateWindow(HWND hwnd)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLL_NAME
public static final java.lang.String DLL_NAME
- See Also:
- Constant Field Values
User32
public User32()
defWindowProc
public static LRESULT defWindowProc(HWND hwnd,
UINT msg,
WPARAM wparam,
LPARAM lparam)
throws NativeException,
java.lang.IllegalAccessException
- Throws:
NativeException
java.lang.IllegalAccessException
updateWindow
public static void updateWindow(HWND hwnd)
throws NativeException,
java.lang.IllegalAccessException
- Throws:
NativeException
java.lang.IllegalAccessException
dispatchMessage
public static void dispatchMessage(MSG msg)
throws NativeException,
java.lang.IllegalAccessException
- Throws:
NativeException
java.lang.IllegalAccessException
translateMessage
public static void translateMessage(MSG msg)
throws NativeException,
java.lang.IllegalAccessException
- Throws:
NativeException
java.lang.IllegalAccessException
getMessage
public static int getMessage(MSG msg,
HWND hwnd,
int minMSG,
int maxMSG)
throws NativeException,
java.lang.IllegalAccessException
- Throws:
NativeException
java.lang.IllegalAccessException
showWindow
public static boolean showWindow(HWND hwnd,
int nCmdShow)
throws NativeException,
java.lang.IllegalAccessException
- Throws:
NativeException
java.lang.IllegalAccessException
createWindowEx
public static final int createWindowEx(int dwExStyle,
java.lang.String lpClassName,
java.lang.String lpWindowName,
int dwStyle,
int x,
int y,
int nWidth,
int nHeight,
int hWndParent,
int hMenu,
int hInstance,
int lParam)
throws NativeException,
java.lang.IllegalAccessException
- HWND CreateWindowEx(
DWORD dwExStyle,
LPCTSTR lpClassName,
LPCTSTR lpWindowName,
DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hWndParent, -3 for HWND_MESSAGE (Message only windows)
HMENU hMenu,
HINSTANCE hInstance,
LPVOID lpParam
);
- Throws:
NativeException
java.lang.IllegalAccessException
messageBox
public static final int messageBox(int parentHandle,
java.lang.String message,
java.lang.String caption,
int buttons)
throws NativeException,
java.lang.IllegalAccessException
- Throws:
NativeException
java.lang.IllegalAccessException