com.jniwrapper.win32.ui
Class User32

java.lang.Object
  extended bycom.jniwrapper.util.FunctionCache
      extended bycom.jniwrapper.win32.WinFunctionCache
          extended bycom.jniwrapper.win32.ui.User32

public class User32
extends WinFunctionCache

This class wraps functionality provided by user32 library.


Field Summary
static java.lang.String FUNCTION_ATTACH_THREAD_INPUT
           
static java.lang.String FUNCTION_CREATE_ELLIPRIC_RGN
           
static java.lang.String FUNCTION_CREATE_MENU
           
static java.lang.String FUNCTION_CREATE_POPUP_MENU
           
static FunctionName FUNCTION_DISPATCH_MESSAGE
           
static java.lang.String FUNCTION_GET_MENU
           
static FunctionName FUNCTION_GET_MESSAGE
           
static java.lang.String FUNCTION_GET_WINDOW_THREAD_PROCESS_ID
           
static FunctionName FUNCTION_LOAD_IMAGE
           
static java.lang.String FUNCTION_POST_QUIT_MESSAGE
           
static FunctionName FUNCTION_POST_THREAD_MESSAGE
           
static FunctionName FUNCTION_REGISTER_CLIPBOARD_FORMAT
           
static java.lang.String FUNCTION_SET_MENU
           
static java.lang.String FUNCTION_TRANSLATE_MESSAGE
           
 
Method Summary
static void attachThreadInput(int threadIdAttach, int threadIdAttachTo)
          Attaches input processing mechanism of one thread to another thread.
static Handle createMenu()
           
static Handle createPopupMenu()
           
static void detachThreadInput(int threadIdAttach, int threadIdAttachTo)
          Detaches input processing mechanism of one thread from another thread.
static User32 getInstance()
           
static Handle getMenu(Wnd wnd)
           
static Handle loadResourceFromFile(java.lang.String fileName, int resourceType)
           
static Handle loadResourceFromFile(java.lang.String fileName, int resourceType, int width, int height)
           
static void postQuitMessage(int exitCode)
           
static long registerClipboardFormat(java.lang.String format)
           
static void setMenu(Wnd wnd, Handle hmenu)
           
 
Methods inherited from class com.jniwrapper.win32.WinFunctionCache
isUnicode, setUnicode, setupEncoding
 
Methods inherited from class com.jniwrapper.util.FunctionCache
getFunction, getVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FUNCTION_GET_MESSAGE

public static final FunctionName FUNCTION_GET_MESSAGE

FUNCTION_POST_THREAD_MESSAGE

public static final FunctionName FUNCTION_POST_THREAD_MESSAGE

FUNCTION_TRANSLATE_MESSAGE

public static final java.lang.String FUNCTION_TRANSLATE_MESSAGE
See Also:
Constant Field Values

FUNCTION_DISPATCH_MESSAGE

public static final FunctionName FUNCTION_DISPATCH_MESSAGE

FUNCTION_POST_QUIT_MESSAGE

public static final java.lang.String FUNCTION_POST_QUIT_MESSAGE
See Also:
Constant Field Values

FUNCTION_CREATE_ELLIPRIC_RGN

public static final java.lang.String FUNCTION_CREATE_ELLIPRIC_RGN
See Also:
Constant Field Values

FUNCTION_LOAD_IMAGE

public static final FunctionName FUNCTION_LOAD_IMAGE

FUNCTION_CREATE_MENU

public static final java.lang.String FUNCTION_CREATE_MENU
See Also:
Constant Field Values

FUNCTION_CREATE_POPUP_MENU

public static final java.lang.String FUNCTION_CREATE_POPUP_MENU
See Also:
Constant Field Values

FUNCTION_SET_MENU

public static final java.lang.String FUNCTION_SET_MENU
See Also:
Constant Field Values

FUNCTION_GET_MENU

public static final java.lang.String FUNCTION_GET_MENU
See Also:
Constant Field Values

FUNCTION_REGISTER_CLIPBOARD_FORMAT

public static final FunctionName FUNCTION_REGISTER_CLIPBOARD_FORMAT

FUNCTION_ATTACH_THREAD_INPUT

public static final java.lang.String FUNCTION_ATTACH_THREAD_INPUT
See Also:
Constant Field Values

FUNCTION_GET_WINDOW_THREAD_PROCESS_ID

public static final java.lang.String FUNCTION_GET_WINDOW_THREAD_PROCESS_ID
See Also:
Constant Field Values
Method Detail

getInstance

public static User32 getInstance()

postQuitMessage

public static void postQuitMessage(int exitCode)

loadResourceFromFile

public static Handle loadResourceFromFile(java.lang.String fileName,
                                          int resourceType)

loadResourceFromFile

public static Handle loadResourceFromFile(java.lang.String fileName,
                                          int resourceType,
                                          int width,
                                          int height)

setMenu

public static void setMenu(Wnd wnd,
                           Handle hmenu)

getMenu

public static Handle getMenu(Wnd wnd)

createMenu

public static Handle createMenu()

createPopupMenu

public static Handle createPopupMenu()

registerClipboardFormat

public static long registerClipboardFormat(java.lang.String format)

attachThreadInput

public static void attachThreadInput(int threadIdAttach,
                                     int threadIdAttachTo)
Attaches input processing mechanism of one thread to another thread.

Parameters:
threadIdAttach - identifier of attached thread
threadIdAttachTo - identifier of thread to which attached another thread
See Also:
to detach the thread input

detachThreadInput

public static void detachThreadInput(int threadIdAttach,
                                     int threadIdAttachTo)
Detaches input processing mechanism of one thread from another thread.

Parameters:
threadIdAttach - identifier of detached thread
threadIdAttachTo - identifier of thread from which detached another thread
See Also:
to attach the thread input